osdir.com
mailing list archive

Subject: Weekly rotations not working - msg#00067

List: sysutils.backup.rsnapshot.general

Date: Prev Next Index Thread: Prev Next Index
I just installed a 1.2.1-1 on Linux, and I am using a configuration
that is running on another Linux box (running 1.6).

This is in the cron:

# Take a daily snapshot at 3:30 AM (5:30am is too late if runs contine into
8am)
30 3 * * * /usr/bin/rsnapshot daily > /dev/null 2>&1
# Take a weekly snapshot every Sunday morning at 11:00AM
0 11 * * 0 /usr/bin/rsnapshot weekly

And the output from the rsnapshot log for this past week is:

[26/Mar/2006:11:00:01] /usr/bin/rsnapshot weekly: started
[26/Mar/2006:11:00:01] /usr/bin/rsnapshot weekly: completed successfully

But there is not weekly.0 directory created.
The output from the rsnapshot -t weekly is:

$ rsnapshot -t weekly
echo 17989 > /var/lock/subsys/rsnapshot
mv /media/usbdisk/daily.6/ /media/usbdisk/weekly.0/

So, it looks like it will create the necessary directory. If I run it
manually,
the directory is created. Letting it run in cron, it isn't.

Am I missing something here? Does cron not have permissions or something?
The dailys are all running fine.




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: Copying Rsnapshot structure intact...

On 3/27/06, Eric Anderson <anderson@xxxxxxxxxxxx> wrote: > Scott Hess wrote: > > Note that "significant" can be pretty damned large. I have a snapshot > > root with 3M inodes (many fewer files, of course) across about 160G of > > data, and 1G of ram, and I always start swapping long before I'm done. > > I basically write up a quick script to emulate the order of the > > original snapshots with hard-linking, and let it run overnight. > > Actually, you really do have 3m files. Hardlinks don't use an > additional inode - they are merely directory entries pointing to the > original inode. Sorry, I elided too much, there, or perhaps wasn't thinking clearly when I posted. The large number of inodes on an rsnapshot root is coming from the directory entries the inode references live within. I'm using 3 to 4 times as many inodes on my backup box as on the boxes being backed up. While rsync's memory needs when I dup that to an external disk are proportional to the number of distinct paths in the filesystem rather than the number of inodes, for a fully-populated rsnapshot root, I've found number of inodes to be a reasonable proxy (and inodes can be trivially measured with df -i). -scott ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642

Next Message by Date: click to view message preview

Re: How can I customize the name of directories created?

Thanks so much for the info.... so my script is something like this: find . -maxdepth 1 -type l -exec rm {} \;for i in `find . -maxdepth 1 -type d -not -iname '.'`; do  ln -s $i "`ls -ld --time-style="+%b %e, %Y %k%M%S" $i | awk '{ print $6" "$7" "$8" "$9}'`"    done noticed that i used ls -ld with a specific time style. The date modified will look like; Mar 20, 2006 120311 and this string will be used as the name of the softlink.   To make the rsnapshot directories like hourly.0, etc invisible in samba share, i vetoed it. So when a user access that share, all he can see is folders like: Mar 20, 2006 120311 Mar 21, 2006 120311 Mar 22, 2006 120311   when creating a new snapshot, i need to remove first all the links. This is because of the rotation of hourly.0 to hourly.1   thanks, warren  On 3/27/06, David Cantrell <david@xxxxxxxxxxxxxxx> wrote: On Mon, Mar 27, 2006 at 08:07:41AM -0600, Eric Anderson wrote:> Warren Beldad wrote:> >what if I need to have something like: > >March 27, 2006 13:00> >March 27, 2006 14:00> >March 28, 2006 13:00> I don't have a solution for you, but maybe a post-backup script could> make softlinks for you?That would seem to be the best way of doing it.  Something like this should do the trick ...find . -maxdepth 1 -type l -exec rm {} \;for i in `find . -maxdepth 1 -type d -not -iname '.'`; do   ln -s "$i" "`stat --format=%x $i`"donewhich assumes that you are in your snapshot root directory.  It probably assumes GNU find and GNU stat too, cos I did this on a Linux box, butI'm sure you could adapt it to run elsewhere.  Also note that I was toolazy to produce exactly the format you wanted - change the %x tosomething appropriate. --David Cantrell | top google result for "internet beard fetish club"Sobol's Law of Telecom Utilities:   Telcos are malicious; cablecos are simply clueless.------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642_______________________________________________ rsnapshot-discuss mailing listrsnapshot-discuss@xxxxxxxxxxxxxxxxxxxxxhttps://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Previous Message by Thread: click to view message preview

How can I customize the name of directories created?

Hi All,   Instead of : daily.0 hourly.0 hourly.1 etc....   what if I need to have something like: March 27, 2006 13:00 March 27, 2006 14:00 March 28, 2006 13:00   I know its hard to compare strings like this. Its hard to tell whether the first interval has already completed... But, is it possible? My point is, my destination directory is a samba/nfs share. The user just open that share and restore but its hard to tell which is which.   thanks, warren  

Next Message by Thread: click to view message preview

Taking FOREVER!

Hi Everyone, I just got rsnapshot and I love it, it works really well. I first tested it out on just one machine and it worked flawlessly. So after I found it stable and very useful I decided to deploy it so I could backup all of my colocated machines. So I started the backups at 8 PM the problem is that it is still going and it is currently 9:42 AM the size of the current directory its backing up is 9.9 GIGs, but it had about 10 hours to rsync these files shouldn't it be done by now? My bandwidth on both ends are 1.5M pipes, also just something I noticed is that rsync and ssh are barely taking up any resource cpu and memory wise which is a really good thing, but is this normal? If anyone could help me out I would really appreciate it, thank you. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by