Comment on page
Sync files from a SFTP server with credentials in the Keeper Vault
Use credentials stored in the Keeper Vault to facilitate a connection to your FTP server, then Commander can automatically download files from the server to a specified location on your machine.
Secure your SFTP credentials, or automate file download or backup with Commander.
To use the Commander SFTP sync, utilize the
The first time you run the SFTP sync, you need to provide the plugin type, path to remote files, and credentials record to use.
--pluginthe plugin type to use (use SFTP)
--remote-pathpath to files you want to download in the SFTP directory
--recordUID or path to record that holds the SFTP credentials
rsync "path/to/files_location/" --plugin sftp --remote-path "/path/to/files" --record "credentials/SFTP creds"
Once you have specified these options once, Commander will retain the settings by saving them to the record you provided. Subsequent SFTP syncs can be run by only providing the location to download files to.
Commander can be configured to run commands on a given cadence by editing the Commander configuration file.
After you have run the first time setup for the SFTP sync, Commander can be configured to sync on a given cadence.
To automate Commander to sync with your SFTP server every 24 hours, add the following fields to the configuration:
Complete configuration file example:
Once configured, run Commander with the edited configuration file to start the automation. This can be done from the command line/terminal.
$> keeper shell --config "/sync.conf"
Commander will continue to run while it waits for the next command run. If Commander is terminated, or the machine is turned off, Commander will need to be started again to continue.