Jump to navigation Jump to search
- smbclient -L //gonzo
Password: Domain=[PINECREST] OS=[Unix] Server=[Samba 3.0.22] Sharename Type Comment --------- ---- ------- homes Disk Home Directories Files Disk File system, read-only Public Disk STUFF Disk and things SCRATCH Disk and sniff IPC$ IPC IPC Service (Samba 3.0.22) ADMIN$ IPC IPC Service (Samba 3.0.22) Epson875 Printer EPSON Stylus Photo 875 Brother Printer BROTHER HL-1250 Domain=[PINECREST] OS=[Unix] Server=[Samba 3.0.22] Server Comment --------- ------- GONZO Samba 3.0.22 Workgroup Master --------- ------- PINECREST BUNSEN
- smbclient //larder/Documents <password> -U<username> -Tcga larder.Documents.tar / > detail.log
- Makes an incremental backup (warning: rename the file after this operation, or the next backup will overwrite all but the newest files in the backup) and writes the backup session output to "detail.log".
- smbclient //larder/Documents <password> -U<username> -Tc larder.Documents.tar / > detail.log
- Does a full backup and writes the backup session output to "detail.log".
- Some things about the -T (tarfile) option:
- This seems to be the only way of doing a backup -- or, at least, I see no instructions for doing it any other way.
- Although the 'g' (incremental backup) sub-option causes only newly-modified files to be copied, the .tar file will still be created from scratch -- that is, if you tell it to do an incremental backup to an existing .tar file, you will lose your backup copies of all older files. Presumably the useful way to use this function, then, is to give the incremental backup .tar files unique names.