Rescript v4.3
Fixes, additions and removals
-
Fixed
version
command to display more info. -
Replaced
==
with=
. -
Edited help displayed.
-
Since
restic 0.9.5
is out and it includes--group-by
forsnapshots
command, thisrescript
flag was removed;restic
flag is more complete, you can use it with host, paths and tags. The commandsnaps
is still there because I like to see the compact version by default, but that is all that thisrescript
command does; to display compact version of snapshots by default. -
Fixed some quotes here and there, some variables, etc.
-
Added a
-d, --dry-run
flag forbackup
command. This flag usesdu
. If you use this flag, by default it will take your BACKUP_DIR variable and the exclusion file, and it will display the files that would be saved and the size. Note that for this flag to work properly with the exclusion file, directories must be specified with the absolute path; if you have $HOME/Downloads, for example, it will not read it properly for some reason. You can also specify otherdu
options. e.g.:rescript [repo_name] backup --dry-run
This command will display the directories that would be saved and the total size using the BACKUP_DIR and your exclusion file.
rescript [repo_name] backup --dry-run -s
This
-s
option stands for--summarize
option indu
. So, this will use your BACKUP_DIR but will omit the exclusion file. You can add the exclusion file manually adding this otherdu
flag--exclude-from="/path/to/your/exclusion_list"
or adding--exclude="exclude_pattern"
, or both or any otherdu
option. By defaultdu
in this script will use-hc
to display size in human readable and count. -
Added
--help
flag as in "Global Flags"; the "design" was there initially but I never get to add the flag itself.