smbtar is a very small shell script on top of smbclient, which dumps SMB shares directly to tape.
The PC that the share resides upon.
-x service
The share name on the PC to connect to. Default: backup.
-X
Exclude mode. Exclude filenames... from tar create or restore.
-d directory
Change to initial directory before restoring / backing up files.
-v
Verbose mode.
-p password
The password to use to access a share. Default: none
-u user
The user id to connect as. Default: UNIX login name.
-t tape
Tape device. May be regular file or tape device. Default: Tape environmental variable; if not set, a file called tar.out.
-b blocksize
Blocking factor. Defaults to 20. See tar(1) for a fuller explanation.
-N filename
Backup only files newer than filename. Could be used (for example) on a log file to implement incremental backups.
-i
Incremental mode; tar files are only backed up if they have the archive bit set. The archive bit is reset after each file is read.
-r
Restore. Files are restored to the share from the tar file.
-l log level
Log (debug) level. Corresponds to -d flag of smbclient(1) .
Ricky Poulten (poultenr@logica.co.uk) wrote the tar extension and this man page. The smbtar script was heavily rewritten and improved by Martin Kraemer <Martin.Kraemer@mch.sni.de>. Many thanks to everyone who suggested extensions, improvements, bug fixes, etc.
See smb.conf(5) for a full list of contributors and details of how to submit bug reports, comments etc.