feat: Minor changes
This commit is contained in:
parent
bdeb39581d
commit
3d514678e7
@ -99,11 +99,11 @@ handler::tar() {
|
||||
[ "$__verbose" ] && {
|
||||
echo "Source path: $src_path"
|
||||
echo "Destination path: $dst_path"
|
||||
echo "Command: tar $exclude $opts $archive $src_path"
|
||||
echo "Run command: tar $exclude $opts $archive $src_path"
|
||||
}
|
||||
|
||||
log "Archiving $src_path to $archive ..."
|
||||
log "Command: tar $exclude $opts $archive $src_path"
|
||||
log "Run command: tar $exclude $opts $archive $src_path"
|
||||
|
||||
# Run tar
|
||||
try tar "$exclude" "$opts" "$archive" "$src_path"
|
||||
|
@ -48,7 +48,8 @@ handler::cp() {
|
||||
# Copy files preserving metadata
|
||||
for backup in "${backups[@]}"; do
|
||||
log "Copying file $backup to $dst_path ..."
|
||||
[ "$__verbose" ] && echo "Command: cp --archive $backup $dst_path"
|
||||
log "Run command: cp --archive $backup $dst_path"
|
||||
[ "$__verbose" ] && echo "Run command: cp --archive $backup $dst_path"
|
||||
try cp --archive "$backup" "$dst_path"
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user