Syncr is a script for making rsync easier.
It will prompt you for all the necessary information, assemble the rsync call, and execute it.
It also provides the ability to save the specified settings to a .syncr file in the source directory, allowing you to bypass all the questions next time. (At the moment this is limited to local source directories. Remote SSH directories are not yet supported.)
Supported options:
- Source
- Destination
- Timestamp preservation
- Owner and group preservation
- Permission preservation
- Executability preservation
- Exclude certain files (uses list in provided excludes.txt)
- Delete destination files that aren't in the source
- Run as super user (sudo)
- Save settings to a .syncr file in the source directory.
- Preview the rsync command before executing
>> syncr
Source (include trailing slash): [./]
Destination (no trailing slash): ./test
Should file timestamps be preserved? [Y/n]: y
Should file ownership and group be preserved? [Y/n]: y
Should file permissions be preserved? [Y/n]: y
Should file executability be preserved? [Y/n]: y
Should files be excluded from excludes.txt? [Y/n]: y
Delete files from the destination if they are not in the source? [y/N]: n
Run rsync as super user (sudo)? [y/N]: y
Do you want to save these settings to a .syncr file in the source directory for future use? [y/N]: y
Settings saved!
The following rsync command will be executed:
sudo rsync -vv --stats --progress -rlxtogpE --exclude-from excludes.txt ./ ./test
Are you sure you want to continue? [y/N]: y