Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a Linux server with almost no disk space left. I fact i there is not enough space left to write a full backup to the disk, so i wonder if there is a good way to stream the backup directly to my windows home PC and save it there.

Basically i want to know how i could transmit output from a pipe on Linux to a file on a remote Windows server.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

From the Windows end, do:

ssh user@linuxserver "tar cvzf - /stufftobackup" > backup.tgz

Obviously user will need read access to /stufftobackup.

share|improve this answer
Nice, i didn't think it would be so simple :-) –  Jochen Ritzel Aug 26 '09 at 3:47

Are the Windows and Linux systems on the same network? If you're just backing up a directory and not the system, you could just mount a Windows share in Linux (something like mount -t cifs //windows.system.ip/sharename /mnt/samba , first creating /mnt/samba) and save your files there.

Or you can use FUSE to mount a remote share over SSH as if it were local and again save data to the mount point.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.