LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   archiving to a windows machine (https://www.linuxquestions.org/questions/linux-newbie-8/archiving-to-a-windows-machine-297196/)

MasterCephus 03-03-2005 10:55 AM

archiving to a windows machine
 
I want to make a backup of a directory on my linux box (running TSL 2.2) onto one of my windows machines.

Someone told me that I could use tar to do this, but I am unsure of the command to use.

would it be something like:

tar /data -cZ \\laptop\backup


where c = create new and Z = compress


Would this work?

Matir 03-03-2005 12:10 PM

Unlike windows, you cannot use \\machine\share syntax under linux. You would need to either use smbclient or mount the share prior to the tar operation.

MasterCephus 03-03-2005 01:49 PM

can you go a little in depth about how to use smbclient?

Matir 03-03-2005 03:53 PM

Well, smbclient can be used like a command line ftp program (I've done this to write a PHP front end to a samba file server). Mounting the remote samba share (using smbmount/mount -t smbfs) is likely to be simpler and still accomplish all that you need.


All times are GMT -5. The time now is 04:46 PM.