Difference between revisions of "smbclient"
Jump to navigation
Jump to search
(notes about using it for backups; smw; updated layout) |
|||
Line 1: | Line 1: | ||
− | + | <hide> | |
− | [[ | + | [[page type::article]] |
− | == | + | [[thing type::software]] |
− | + | [[part of::Samba]] | |
+ | [[category:Samba]] | ||
+ | </hide> | ||
+ | ==About== | ||
+ | [[smbclient]] is the [[Samba]] client utility.{{seed}} | ||
==Examples== | ==Examples== | ||
* smbclient -L //gonzo | * smbclient -L //gonzo | ||
Line 28: | Line 32: | ||
--------- ------- | --------- ------- | ||
PINECREST BUNSEN | PINECREST BUNSEN | ||
+ | * smbclient //larder/Documents {{arg|password}} -U{{arg|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 {{arg|password}} -U{{arg|username}} -Tc larder.Documents.tar / > detail.log | ||
+ | ** Does a full backup and writes the backup session output to "detail.log". | ||
+ | ==Notes== | ||
+ | * 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. |
Latest revision as of 16:55, 1 April 2016
About
smbclient is the Samba client utility.
This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!
|
Examples
- 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".
Notes
- 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.