delete files

main
Pavel Kuleshov 6 months ago
parent 4dae05ba2c
commit dc5f6bd932

@ -27,6 +27,9 @@ fi
if [ "$mode" == "files" ]; then
rsync -a --exclude-from=$exclude_file --password-file=$password_file $source $user@$ip::$destination
if [ $? -eq 0 ] && [ "$delete_archive" = true ]; then
rm -rf $source/*
fi
else
mkdir -p $archive_dir

Loading…
Cancel
Save