Creating a Customer Copy (Linux)

Creating a Customer Copy (Linux)

Description:

How can I create a customer copy?

Solution:

For Windows please read on here: Creating a Customer Copy Automatically.
If you want to create a customer copy, create a tar.gz file in the SEAL shell directly in the PLSROOT directory while PLOSSYS/DPF is stopped.
If you don't want to stop PLOSSYS/DPF or exclude a data directory, execute the following commands:

1) Create a file 'tar-excludefiles.txt' in the ROOT (= home) directory.
    Example file already attached to this article

Example of the content (example also in attached file for download):

data/installlog
data/io

Attention for PLOSSYS: If you want to exclude the PLOSSYS data directory, you have to save the printer status file (PLSROOT/data/plotserv/sysstate.stat) separately.

2.) Create a compressed tar file (tar.gz file)

With the following tar command you can create a customer copy in a SEAL Shell. All directories specified in the tar-excludefiles.txt, are omitted.

The file: plossys-retour_<date>.txt contains a journal of all packed files. This journal is helpful to check the success while unpacking the tar file.

Attention:

Never forget the '.' ahead of the '>'!
Problems while packing the tar file ('unexpected end of file') may occur, if the tar file resides in the directory tree, which has to be packed. Therefore create the file in a different directory, e.g. tmp.

  1. cd

  2. tar --exclude-from $PLSTOOLS/seal_backup-exclude.txt -zcvf ../plossys-retour_´date +%Y%m%d´.tar.gz . > ../plossys-retour_´date +%Y%m%d´.txt

    Attention with AIX tar has a limit at 1 GB. Split the tar in 900MB Blocks and zip it afterwards. Example for tar with folder plossys:
    tar -cf - /plossys/|split -b 900m - ../plossys-retour.tar.

seal_backup-exclude.txt