0

this is my first post here. I have configured rsnapshot for backing up remote hosts. Some of them are working fine and for some of them in the morning, I am having email with some error code 255. I want to run rsnapshot only for these problematic hosts. So that I can troubleshoot the problem. Any idea how to test or manually run snapshot to test configuration running fine. Please remember that I am not asking for snapshot syntax checking.

1
  • There might be logs configured on your (local) rsnapshot server. Check them. Maybe somewhere in /var/log/rsnapshot/... Commented Feb 12, 2018 at 9:17

3 Answers 3

3

Run rsnapshot -t daily and you will see the single rsync commands to be issued to the remote hosts. Run these rsync commands in dry-run (-n option) to see what happens.

0
4
sudo rsnapshot daily 

Will run a daily snapshot for you. Replacing daily with weekly or monthly will also do what you want. Also when running interactively I like to run with -v so you can have some idea of progress.

3
  • Depending on the configuration, that might be sudo rsnapshot alpha, if rsnapshot is using the "abstract" backup names, rather than the hourly/daily/... Commented Feb 23, 2019 at 18:52
  • 1
    Yeah that's correct. You can look for the retain keyword in your rsnapshot configuration (/etc/rsnapshot.conf) to determine what your backup stages are named. Commented Feb 28, 2019 at 15:24
  • Upvote since it answers to "how to run .." not "how to test ..." Commented Nov 6, 2023 at 12:27
0

I finally found the answer. Actually there is no rsnapshot command to run manually rather its all about rsync. Since rsnapshot works based on rsync so almost all command are in rsync. So while I tried a dry run, it was showing me what rsync command will be executed during snapshot backup. I tried this rsync command and it was enough for me. Thanks

1
  • 2
    Wrong. There is an rsnapshot command to run and you should use that. It's way safer as it does mount tests etc. Today I use "sudo rsnapshot alpha" Commented Jan 27, 2020 at 14:42

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.