Ok, I wrote a script that does exactly what I want, but for the life of me, I cannot get it to run at bootup. I put the script in /etc/init.d/ and linked it in the /etc/init.d/boot.d directory using "ln -s ../boot.backups S15boot.backups".
Then I rebooted. I was sure this would work, but it doesn't?
Here is the contents of my script. Maybe you can point out where I went wrong? Permissions on the script are 755 just like most other boot scripts in the init.d directory.
-----------------
#!/bin/sh
# Remove existing rsnapshot config in case multiple backups are configured on this machine.
rm -rf /etc/rsnapshot.conf
# Move in the config that we need.
cp /etc/kb6/rsnapshot.conf /etc/rsnapshot.conf
# Run rsnapshot to rotate and download the new backups.
/usr/local/bin/rsnapshot daily
# Send an email to let everyone know the backups were done.
ssh root@server_here.net /root/cpbackups_complete
Then I rebooted. I was sure this would work, but it doesn't?
Here is the contents of my script. Maybe you can point out where I went wrong? Permissions on the script are 755 just like most other boot scripts in the init.d directory.
-----------------
#!/bin/sh
# Remove existing rsnapshot config in case multiple backups are configured on this machine.
rm -rf /etc/rsnapshot.conf
# Move in the config that we need.
cp /etc/kb6/rsnapshot.conf /etc/rsnapshot.conf
# Run rsnapshot to rotate and download the new backups.
/usr/local/bin/rsnapshot daily
# Send an email to let everyone know the backups were done.
ssh root@server_here.net /root/cpbackups_complete