On Wed, Feb 1, 2012 at 2:58 PM, Rob MacGregor <rob.macgregor < at > gmail.com> wrote:
On Wed, Feb 1, 2012 at 19:41, Robert Longfield
<robert.longfield < at > gmail.com> wrote:
I am having a problem with rsnapshot's cron jobs and retaining
permissions on files backed up by rsnapshot.
I have the following in my root's crontab -e
0 */4 * * * root /usr/bin/rsnapshot hourly
30 3 * * * root /usr/bin/rsnapshot daily
0 3 * * 1 root /usr/bin/rsnapshot weekly
30 2 1 * * root /usr/bin/rsnapshot monthly
The cron jobs appear not to be running and there are no hourly.,
daily. directories being created in the destination directory.
Check your syslog for cron's log output.
Ok so syslog says:
Feb 1 08:00:01 KITSrv01 /USR/SBIN/CRON[5437]: (root) CMD (root
/usr/bin/rsnapshot hourly)
Feb 1 08:00:01 KITSrv01 /USR/SBIN/CRON[5435]: (CRON) error
(grandchild #5437 failed with exit status 127)
Which I believe means that cron is unable to find rsnapshot in
/usr/bin. I know it is there however as I can manually run
'/usr/bin/rsnapshot hourly'
Also when I manually run rsnapshot as root, all the files are given
root:root ownership. Is this normal? I was under the impression that
the files ownership should be maintained.
All files? What file system are you storing your snapshots on (ext3,
ext4, xfs, ntfs, fat32...) and what operating system are you using?
I guess all that is important info I should have included the first time.
Yes all files and directories are being assigned ownership and group
of root:root
I'm running on Debian 6, the backups are being written to an external
USB HD with a NTFS file system. That's probably the problem isn't it.
--
Please keep list traffic on the list.
Rob MacGregor
Whoever fights monsters should see to it that in the process he
doesn't become a monster. Friedrich Nietzsche
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss