LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-05-2016, 12:10 PM   #1
FredGSanford
Senior Member
 
Registered: Nov 2005
Location: USA
Distribution: Mageia 7 - Debian 10 - Artix Linux
Posts: 1,142
Blog Entries: 5

Rep: Reputation: 207Reputation: 207Reputation: 207
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.
 
Old 10-18-2016, 11:31 AM   #2
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
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
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsnapshot issue NoRearView Linux - Server 2 03-07-2016 02:04 PM
Backup VM using rsnapshot cccc Linux - Virtualization and Cloud 3 02-05-2010 08:35 AM
Rsnapshot du automation steven19782007 Linux - Newbie 2 06-11-2009 01:42 AM
Backups with rsnapshot jeremy LQ Articles Discussion 0 07-30-2007 12:58 PM
rsync and rsnapshot madman100 Linux - Newbie 4 10-10-2006 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration