|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
rsnapshot daily not running
I've got the following in /etc/rsnapshot.conf:
Quote:
Quote:
/.snapshots/hourly.5 not present (yet), nothing to copy (hourly.5 does in fact exist) I have no idea what I am missing or doing wrong. Any help is appreciated. Thank you |
|
|||
You're missing patience.
It's just a warning because it rotates through all the name.x directories when it runs. When you first start using rsnapshot, those backups haven't been made and don't exist yet. Once you get through enough backups, the directory will be there and it'll stop warning. |
|
|||
Thank you for that. Any idea how long it takes as I've been running rsnapshot continuously for about 3 days now and still no daily backup.
|
|
|||
Daily should run at 11:30 pm. The warning about a missing hourly shouldn't stop it.
You have no daily backups? Do you see anything in the log at 23:30? |
|
|||
From the log:
[quote] [2020-01-25T23:30:01] /usr/local/bin/rsnapshot daily: started [2020-01-25T23:30:01] echo 70126 > /var/run/rsnapshot.pid [2020-01-25T23:30:01] /shadow/.snapshots/hourly.5 not present (yet), nothing to copy [2020-01-25T23:30:01] rm -f /var/run/rsnapshot.pid [2020-01-25T23:30:01] /usr/local/bin/rsnapshot daily: completed successfully [\quote] Despite what the log says hourly.5 does exist and there is no daily. At this point I think I'll just keep hourly and forget about daily. Thanks |
|
||||
Quote:
|
|
|||
Thank you, jggimi.
I'm going to let rsnapshot run for another 24 hours. If I don't see a daily backup I will contact the port maintainer as you suggest. |
|
||||
FWIW, here's a brief HOWTO from Solène Rapenne for rsnapshot on OpenBSD.
She notes several possible provisioning missteps, which you may want to check for to ensure you haven't accidentally made them: https://dataswamp.org/~solene/2020-01-10-rsnapshot.html |
|
|||
Thanks for that, but it was from Solene's post that I first learned of rsnapshot.
I suppose reading thru it again might not be a bad idea tho... |
|
|||
I don't know why your daily is looking for an hourly at all. Mine does not. What other options do you have set in rsnapshot.conf? Do you have sync_first or something?
If you run daily manually as root in trial mode, what do you get. rsnapshot -vt daily |
|
|||
Quote:
Quote:
|
|
|||
Some of your hourly directories are 6 hours apart, not 4.
I would delete all the backups and let rsnapshot recreate everything. Just let it run for a day. Less relevant: In your backup statements, you can use just the path relative to snapshot_root, you don't need the whole path. I assume you're getting many depths of path in your backup that you don't need. You also have a '.snapshot' vs '.snapshots' that would be avoided by not specifying the full path there. |
|
|||
Thank you. I will make the changes in the conf file and do as you suggest.
|
|
|||
I hate to say, "delete and start over", but as I was reconfiguring my set up, I had to do that, too.
|
|
|||
Just an update on my rsnapshot problems.
I did a pkg_delete and removed rsnapshot as well as all backups. I then reinstalled, re-configured and tried again. Same problem - hourly works fine, daily refuses to create a backup saying hourly.5 does not exist (which, in fact, it does) nothing to copy. Per jggimi's suggestion I contacted the port maintainer who asked me to try to run rsnapshot manually. Same problem. I'm now waiting to see if he comes back to me with any ideas. Meanwhile, I did a little experimenting on my own and found that I can get a daily backup if hourly is commented out in /etc/rsnapshot.conf. Similarly, I can run a manual backup but only if every other backup scenario is commented out in the config file. In other words, I can run any backup I want but only if it is the only backup specified in the config file. |
|
|||
Ok, I just replicated this with your config and a fresh snapshot_root.
I think I see what's happening. Obviously, you have to let hourly run 6 times to get to hourly.5. Then when daily runs, it works, but MOVES hourly.5 to daily.0 so hourly.5 is now gone. Hourly has to run again before daily succeeds again. Also, check your mount and unmount scripts that they are working. Maybe comment them out and leave the partition mounted and manually run the steps. |
|
|||
I will do as you suggest. And many thanks for taking the time to help me with this. I do appreciate it.
After doing as you suggested everything seems to be running properly. Thanks again for your help. Last edited by stanl; 8th February 2020 at 02:00 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
root's crontab vs daily.local | beavers | OpenBSD General | 2 | 8th January 2020 11:13 AM |
Daily Insecurity Output | stanl | OpenBSD Security | 2 | 8th August 2019 02:12 PM |
/etc/daily gives incorrect warning | acampbell | OpenBSD General | 8 | 12th May 2017 04:12 AM |
Problem getting php running | badguy | OpenBSD General | 7 | 22nd July 2009 03:34 PM |
FreeBSD server, Windows clients, daily backups | Weaseal | FreeBSD General | 4 | 25th December 2008 05:50 PM |