psb rotation handling for remote backups
This application will daemonize the rotator package, which can be used via the client: psb-rotatorc. The daemon must be ran as a superuser, an example Systemd service file can be found in ./examples. Installing the daemon and client is manditory/only for remote backup jobs.
make build
sudo make install
Note: the -p flag is for defining the absolute path to the backup directory, and the default directory is '/backup', edit the example Systemd file accordingly. If the run config key backup-directory has a value, the path is again overridden, but individually unique to that specific backup.
sudo cp ./examples/psb-rotatord.service /etc/systemd/system/psb-rotatord.service
systemctl enable psb-rotatord.service
systemctl start psb-rotatord.service