5_Restore_backup.sh 465 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # Coding: utf-8
  3. # Editor: www.kate.org
  4. # Created 2023-01-20
  5. source $HOME/.SCR/lib.sh
  6. if [ $# == "0" ];
  7. then
  8. echo "Restore backup"
  9. echo "1 arg - path with file list to deleted folders"
  10. echo "2 arg - path to input folders"
  11. echo "3 arg - path to output folders"
  12. echo "Example: ./5_Restore_backup.sh ~/Desktop/home_to_data1.list ~/DATA1/backup/home ~/"
  13. exit 0
  14. fi
  15. rsyn_no_e24.sh -avr --delete-excluded --files-from="$1" "$2" "$3"