Configuring Nightly Backups

Hi Folks,

I’ve been reading about taking backups via command line.
I want to take nightly backups and some kind of rotation. I didn’t see any documentation about how to do this.

I guese I need to write a custom script to do this. Does anyone have any suggestions.

[iworx@test-box ~]$ /home/interworx/bin/backup.pex --domains=all --all

If that is run nightly I guese I will eventually run out of hard disk space. So I need to keep say 30 and delete the oldest each time. Can anyone suggest a good way to do that?

:slight_smile:

Here’s an example of the basic backup command syntax.


/home/interworx/bin/backup.pex --domains=all --file-path="/home/backups"

As for the rest, do a search of the foums. There are many people here who have scheduled rysynk backups to automatically remove the old backups and you can probably “borrow” code from one of those.

Good luck :slight_smile: