LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't get rsnapshot to work (https://www.linuxquestions.org/questions/linux-software-2/cant-get-rsnapshot-to-work-4175590820/)

FredGSanford 10-05-2016 12:10 PM

Can't get rsnapshot to work
 
I'm running this on Debian Jessie and thought I had it to do a weekly & monthly backups.

I was following this Archlinux guide on configuring it.
https://wiki.archlinux.org/index.php/Rsnapshot

If I set it up with systemdctl, as mention in Arch wifi, do I still need to setup a cron job?

Assuming it will keep the last backups for a 3 month interval after the weekly backup. This is my first time trying rsnapshot. How do I define the backup to run, lets say every Tues. at 23:00 (11:00pm)?

I want a weekly backup. This is how I have it setup in my rsnapshot config file.

#retain hourly 6
#retain daily 7
retain weekly 4
retain monthly 3

I want it to backup weekly (Tues. 23:00). Does the "retain monthly 3" keep the past 3 months once completed for 3 months?

It was suppose to have ran This morning at 23:00 but nothing happen.

Thnx.

DaneM 10-18-2016 11:31 AM

I just set up an rsnapshot server, using Ubuntu 14.04. The cron file rsnapshot provides in the package, /etc/cron.d/rsnapshot, doesn't get read by the cron system. The solution is to put scripts in /etc/cron.weekly/ and /etc/cron.monthly/ and make them executable. Important: don't put any periods in the filenames of your scripts, or they won't execute.

/etc/cron.weekly/rsnapshot_weekly
Code:

#!/bin/bash
rsnapshot weekly

/etc/cron.monthly/rsnapshot_monthly
Code:

#!/bin/bash
rsnapshot monthly

Then (as root):
Code:

chown root:root /etc/cron.weekly/rsnapshot_weekly
chown root:root /etc/cron.monthly/rsnapshot_monthly
chmod 755 /etc/cron.weekly/rsnapshot_weekly
chmod 755 /etc/cron.monthly/rsnapshot_monthly



All times are GMT -5. The time now is 06:05 AM.