Can I do a "test run" with rsnapshot?
Solution 1
I don't have an rsnapshot
setup to test this on. Be careful.
Personally, I think that the best thing to do is to carefully evaluate the output of rsnapshot -t interval
. However if you want to actually move files, one way to do it might be to create an alternate config file that is identical to your real config file but with a different snapshot_root
such as:
snapshot_root /test/backup/path
And then you can run your test using
rsnapshot -c rsnapshot.test.conf interval0
where interval0
is your lowest order interval.
Solution 2
- Testing configuration
sudo rsnapshot configtest
should get you aSyntax ok
- Dry testing will be
sudo rsnapshot -t daily
- Complete test will be
sudo rsnapshot daily
You can do the same with either hourly|weekly|monthly
Related videos on Youtube
xenoterracide
Former Linux System Administrator, now full time Java Software Engineer.
Updated on September 17, 2022Comments
-
xenoterracide almost 2 years
I occasionally make changes to my
rsnapshot.conf
and I'm wondering if there's any way I can do a test run that is sync-ed to a location other than the normal flow... something that's not aninterval
. Is this possible? how? -
mb14 over 5 yearsWorked for me. However the syntax was ok (from a rsnapshot point of view) but not from a rsync point of view, so I add to try
rsnapshot -t sync
(sync is where the actual work happen)