Trying to create a backup script on 2 machines to back up to an array, which is backed up nightly. The 2 workstation machines are running 32bit RHEL and the version of Netbackup we use here doesn't support 32bit.
So, we had the idea of creating a tarball of the directories my guys need backed up, then setup a cron job to scp those to a directory on a 64bit RHEL server, which is backed up.
What would be the best way to set this up?
I reckon we would need to delete the tarball after it has been scp'ed to the server (for disk space reasons).
So far, my script looks like this:
SRCDIR="/build /var/spool/cron /etc/cron*"
tar -cpvz --exclude-from='exclude_list.txt' -f $DESDIR/$FILENAME $SRCDIR
Can you guys offer assistance on how to approach this after the tarball is created? Thanks!