Simple FTP Mirror
A simple tool to create a local or remote mirror over ftp. This is not a backup utility! If you are interested in an online backup solution, have a look at boxbackup, duplicity or rdiff-backup.
Usage
Usage: sfm [-v] [-q] [-u username [-p password [-a account]]]
store|retrieve|remove|info hostname[:port] [remotedir [localdir]]
-v: verbose (-vvv debug)
-q: quiet
-u username: ftp username (default anonymous)
-p password: ftp password
-a account: ftp account
store: mirror the content of localdir to remotedir
retrieve: mirror the content of remotedir to localdir
remove: remove remotedir recursively
info: prints some information about remote mirror
hostname[:port]: remote host
remotedir: remote directory (default initial)
localdir: local directory (default current)
Example: sfm -u myuser store ftp.mydomain.com /myfolder /my/folder
Will mirror the content of local directory /my/folder
to remote directory /myfolder
Please register or sign in to comment