Menu

Backup remote pc using tar

Help
2006-12-19
2012-07-26
  • Nobody/Anonymous

    Hi all
    Is there a way to backup a pc remotly using tar
    this is what ive made

    tar -cv --file=c:/PSTNPHILIPPE.tar //qctransplant100/pst/

    gzip -9 < c:/PSTNPHILIPPE.tar > PSTNPHILIPPE.tar.tgz

    del *.tar

    And when im running it i get this error

    C:\>tar -cv --file=c:/PSTNPHILIPPE.tar //qctransplant100/pst/
    tar: Cannot add file //qctransplant100/pst: No such file or directory (ENOENT)
    tar: Error exit delayed from previous errors

    C:\>gzip -9 0<c:/PSTNPHILIPPE.tar 1>PSTNPHILIPPE.tar.tgz

    C:\>del *.tar

     
    • Nobody/Anonymous

      What is the output of the command

      dir \qctransplant100\pst\

       
    • rmccullough

      rmccullough - 2006-12-19

      Can you run this command and reply with the output:

      ls -la //qctransplant100/pst/

       
    • Nobody/Anonymous

      im not sure but im running this on a windows xp system
      I can tell you that in this folder there is only a .pst file from outlook

       
      • rmccullough

        rmccullough - 2006-12-19

        What does the output of the ls command look like?

        Also, you can drop the --file and use this:
        tar cvf c:/PSTNPHILIPPE.tar //qctransplant100/pst/*

         
        • Nobody/Anonymous

          i tried and its not working when i put //qctransplant100/pst/
          It seems that tar cant access a remote computer using the network path like //qctransplant100/pst/

          I have to map a network drive to be able to do this !!

           
          • rmccullough

            rmccullough - 2006-12-19

            No, look:
            C:\TMP>tar cvf test.tar //server/share/bin/*
            tar: Removing leading `/' from absolute path names in the archive
            server/share/bin/blat.exe
            server/share/bin/ExamDiff.exe
            server/share/bin/hexdump.exe
            server/share/bin/Omemory.exe
            server/share/bin/pscp.exe
            server/share/bin/putty.exe
            server/share/bin/unix2dos.exe
            server/share/bin/utftoasc.exe

             
MongoDB Logo MongoDB