save over network

Please ask questions here if you are not familiar with fsarchiver
Post Reply
bmike1
Posts: 8
Joined: Mon Jan 02, 2012 12:42 am

save over network

Post by bmike1 » Thu Feb 16, 2012 6:57 pm

I'm using fsarchiver to backup a computer. I don't have enough diskspace for the archive. I can ssh to another computer. I know which directory I want to save it in but I don't know how to write the file directly to it. I tried it with a pipe and I tried it with a greater-than sign but that didn't work. Pray-tell! can it be done?

bmike1
Posts: 8
Joined: Mon Jan 02, 2012 12:42 am

Re: save over network

Post by bmike1 » Thu Feb 16, 2012 7:07 pm

ahhh haaaa.... after a more in depth analysis of the archive I see that it can be done. However my feeble mind doesn 't know how to do it. I could use tar but I want to use fsarchiver.

bmike1
Posts: 8
Joined: Mon Jan 02, 2012 12:42 am

Re: save over network

Post by bmike1 » Tue Feb 21, 2012 7:35 pm

I think I should issue the command:

fsarchiver -v -z9 -s700 savefs 2012-2-21 /dev/sda1 | ssh [email protected] /mnt/entertainment/clones/IBM/2012-2-21

in my eyes what this will do is use fsarchiver to save the contents of /dev/sda1 at a 'z'ip level of 9 (the maximum lzma compression) 's'plit into 700 MB chunks (if I ever need to save it to CDs) and then send those results to the directory 2012-2-21 of a laptop

well, when I press enter the machine tells me that 2012-2-21 is a directory then starts its thing. My issue is that a new file doesn't appear in /mnt/entertainment/clones/IBM/2012-2-21/ like it would with tar. Is that a problem?
--
:-)~MIKE~(-:

bmike1
Posts: 8
Joined: Mon Jan 02, 2012 12:42 am

Re: save over network

Post by bmike1 » Tue Feb 21, 2012 8:46 pm

hmmmmmmm.... that didn't work. it copied 3% of the device and then:

can't write to the archive file. space on device is 0 bytes.

I ran out of room..... so it isn't piping the output to the laptop. what am I doing wrong?

I really like fsarchiver because it copies the device and not what it is mounted to.

bmike1
Posts: 8
Joined: Mon Jan 02, 2012 12:42 am

Re: save over network

Post by bmike1 » Wed Feb 22, 2012 7:20 am

yeeee haaaaaaaa!!!!
I even figured out how to run sshfs on my own!

for anyone who happens upon this thread with the same problem here is what I did:

sshfs <ip of computer to save to>:<path of directory to save to> <mount point>

(sshfs basically mounts a remote directory)

then

fsarchiver [options] savefs <mount point>/<filename> <device to save>

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: save over network

Post by admin » Mon Mar 05, 2012 12:39 pm

I confirm fsarchiver does not support reading/writing the archive from/to stdin/stdout so you cannot use the pipe. To save your archive on a remote marchine you have to use either NFS or CIFS (or sshfs fuse).

Post Reply