|
Re: Attempting to backup to a remote file system
This is what you're after? Try to lose the -l switch (I think that's extraneous if you're doing user@hostname or user@ipaddr). I'd also drop the pipe over to gzip and do it with a switch straight to tar, though that shouldn't make a difference.
Code:
tar zcvf - /mnt/raid_md1 | ssh user@192.168.1.1 -i ~/.ssh/key "cat > /mnt/backup/fileserver.md1.tar.gz"
One other option you could look into is to mount the remote system as an sshfs using fuse (at which time the local machine will treat the remote share as if it were a local file system). This is dated but a good start: http://www.linuxjournal.com/article/8904
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Last edited by forkbomb; 26th June 2010 at 05:39 AM.
|