Discussion:
[rsnapshot-discuss] rsnapshot doesn't copy data to remote host
Eingedi
2015-05-28 11:42:20 UTC
Permalink
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 ***@remote-host:/path/to/folder/ remote-host/'

What am I doing wrong?

+----------------------------------------------------------------------
|This was sent by ***@galileo-nav.com via Backup Central.
|Forward SPAM to ***@backupcentral.com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Eingedi
2015-05-31 07:58:47 UTC
Permalink
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?

+----------------------------------------------------------------------
|This was sent by ***@galileo-nav.com via Backup Central.
|Forward SPAM to ***@backupcentral.com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Scott Hess
2015-06-01 21:19:31 UTC
Permalink
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 <
Post by Eingedi
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-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
David Cantrell
2015-06-01 22:04:39 UTC
Permalink
Post by Eingedi
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?
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.

------------------------------------------------------------------------------
Eingedi
2015-06-02 09:12:06 UTC
Permalink
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.

+----------------------------------------------------------------------
|This was sent by ***@galileo-nav.com via Backup Central.
|Forward SPAM to ***@backupcentral.com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Nico Kadel-Garcia
2015-06-02 10:54:52 UTC
Permalink
On Tue, Jun 2, 2015 at 5:12 AM, Eingedi
Post by Eingedi
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).
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.

------------------------------------------------------------------------------
Eingedi
2015-06-02 12:13:39 UTC
Permalink
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 :(

+----------------------------------------------------------------------
|This was sent by ***@galileo-nav.com via Backup Central.
|Forward SPAM to ***@backupcentral.com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Eingedi
2015-06-02 12:15:43 UTC
Permalink
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.

+----------------------------------------------------------------------
|This was sent by ***@galileo-nav.com via Backup Central.
|Forward SPAM to ***@backupcentral.com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Loading...