Archiving transfers data from syslog-ng Store Box (SSB) to an external storage solution, cleanup removes (deletes) old files. Archived data can be accessed and searched, but cannot be restored (moved back) to the SSB appliance.
To configure archiving and cleanup, you first have to create an archive/cleanup policy. Archive/cleanup policies define the retention time, the address of the remote backup server, which protocol to use to access it, and other parameters. SSB can be configured to use the SMB/CIFS and NFS protocols to access the backup server:
To configure a cleanup policy that does not archive data to a remote server, see Creating a cleanup policy.
To configure archiving using SMB/CIFS, see Creating an archive policy using SMB/CIFS.
To configure archiving using NFS, see Creating an archive policy using NFS.
Hazard of data loss Never delete an Archive Policy if data has been archived to it. This will make the already archived data inaccessible.
Do not "remake" an Archive Policy (that is, deleting an Archive Policy and then creating another one with the same name but different parameters). This will make data inaccessible, and identifying the root cause of the issue complicated.
If you want to change the connection parameters (that is when you perform a storage server migration), you must make sure that the share contents and file permissions are kept unmodified and there are no archiving or backup tasks running.
On the other hand, if you want to add a new network share to your archives, proceed with the following steps:
It is also safe to extend the size of the network share on the server side.
The different protocols assign different file ownerships to the files saved on the remote server. The owners of the archives created using the different protocols are the following:
SMB/CIFS: The user provided on the web interface.
NFS: root with no-root-squash, nobody otherwise.
SSB cannot modify the ownership of a file that already exists on the remote server.
Once you have configured an archive/cleanup policy, assign it to the logspace you want to archive. For details, see Archiving or cleaning up the collected data.