rsnapshot doesn't copy data to remote host
May 28, 2015 04:42AM
Hello,
I am using rsnapshot with ssh to copy data to a remote host.
Everything look good, i run 'rsnapshot configtest' and it says ok.
But when I type 'rsnapshot hourly' to check if it's working fine, it says complete but when I check the remote host I see no files, emply folder.

This is what I use for the remote host path.

'backup root@remote-host:/path/to/folder/ remote-host/'

What am I doing wrong?
rsnapshot doesn't copy data to remote host
May 31, 2015 12:58AM
help?

All I want to know is if I'm doing something wrong. I want to make rsnapshot copy the data (/etc, /var etc) to a remote host via ssh.
How do I do it?
rsnapshot doesn't copy data to remote host
June 01, 2015 02:20PM
You should check your log file.  It will be logfile in rsnapshot.conf, usually it is at /var/log/rsnapshot.log .  It should show the commands which were run to implement the rsnapshot.

You could also run:
  rsnapshot -v hourly

Also, and I apologize if I'm mis-reading your posts, rsnapshot uses ssh to copy data _from_ remote hosts _to_ the snapshot root on the host rsnapshot runs on.  Your posts are a little ambiguous as to where you're expecting the data to end up.

-scott

On Sun, May 31, 2015 at 12:58 AM, Eingedi <rsnaphshot-forum < at > backupcentral.com ([email]rsnaphshot-forum < at > backupcentral.com[/email])> wrote:
[quote]help?

All I want to know is if I&#39;m doing something wrong. I want to make rsnapshot copy the data (/etc, /var etc) to a remote host via ssh.
How do I do it?

+----------------------------------------------------------------------
|This was sent by barak < at > galileo-nav.com ([email]barak < at > galileo-nav.com[/email]) via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com ([email]abuse < at > backupcentral.com[/email]).
+----------------------------------------------------------------------

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
[url=https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss]https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss[/url]

[/quote]
rsnapshot doesn&#39;t copy data to remote host
June 01, 2015 03:21PM
On 31/05/2015 08:58, Eingedi wrote:

[quote]All I want to know is if I'm doing something wrong. I want to make rsnapshot copy the data (/etc, /var etc) to a remote host via ssh.
How do I do it?
[/quote]
You need to run rsnapshot on the remote host. It can't "push" data to a
remote host, only "pull".

--
David Cantrell | Godless Liberal Elitist

What a lovely day! Now watch me spoil it for you.

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
rsnapshot doesn&#39;t copy data to remote host
June 02, 2015 02:11AM
Wow, that was so stupid of me. I ran it from the client instead of the host.... Solved the issue.
Thanks for the replies guys.

I've got a different problem tho. I want to make rsnapshot copy data to multiple destinations, but it doesn't seem to work very well.
Here's what I did -
I want to make rsnapshot copy data from different servers to different directories on the same host.

What I did was `cp /etc/rsnapshot.conf /etc/rsnapshot2.conf` and so on, made until number 5 (number of different directories).
Then I edited `/etc/rsnapshot.conf` to set it up for each different destination. Checked each one with `rsnapshot configtest`, syntax ok.
Now I went to `/etc/cron.d/rsnapshot` and set it up like this:

# 0 */4 * * * root /usr/bin/rsnapshot -c /etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c /etc/rsnapshot5.conf hourly
# 30 3 * * * root /usr/bin/rsnapshot -c /etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c /etc/rsnapshot5.conf daily
# 0 3 * * 1 root /usr/bin/rsnapshot -c /etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c /etc/rsnapshot5.conf weekly
# 30 2 1 * * root /usr/bin/rsnapshot -c /etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c /etc/rsnapshot5.conf monthly

Set the times with `crontab -e` and left it for the day, to check how it works after the jobs.
The result was bad. Only the first rsnapshot worked, only the hourly rsnapshot of the first directory worked, nothing else.

How do I fix this please? What am I doing wrong?

Thanks,
Barak.
rsnapshot doesn&#39;t copy data to remote host
June 02, 2015 03:56AM
On Tue, Jun 2, 2015 at 5:12 AM, Eingedi
<rsnaphshot-forum < at > backupcentral.com> wrote:
[quote]Wow, that was so stupid of me. I ran it from the client instead of the host.... Solved the issue.
Thanks for the replies guys.

I've got a different problem tho. I want to make rsnapshot copy data to multiple destinations, but it doesn't seem to work very well.
Here's what I did -
I want to make rsnapshot copy data from different servers to different directories on the same host.

What I did was `cp /etc/rsnapshot.conf /etc/rsnapshot2.conf` and so on, made until number 5 (number of different directories).
[/quote]
Consider using my technique: I set a master rsnapshot.conf, that gets
included by different config files. that sets overall default
configuraitons.

Then, I have a diferent .conf file for each host that includes that
template configuraiton, resets the base target directory, and lists
the backup targets. It takes a bit of tracking to make sure they don't
all happen at the same time and get spread out a bit, but I tended to
use a Makefile to list them and to spread out the times for them.

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
rsnapshot doesn&#39;t copy data to remote host
June 02, 2015 05:13AM
I'm not sure I understood what you suggest.

I have one host. On that host I have 5 different directories. I want to use rsnapshot with ssh, each rsnapshot to a different directory.
I tried to separate each line in '/etc/cron.d/rsnapshot' so it'd look something like :
# 0 */4 * * * root /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly
# 0 */4 * * * root /usr/bin/rsnapshot -c /etc/rsnapshot3.conf hourly
And so on....

But that didn't work either.

Help :(
rsnapshot doesn&#39;t copy data to remote host
June 02, 2015 05:15AM
By the way, I have another topic regarding the same issue on this forum. So if you want you can close one since they're talking on the same subject, I just happened to ask another question after the first one was solved.
Sorry, only registered users may post in this forum.

Click here to login