cic-staff-installer/rsync/rsync-uninstall-script.sh

9 lines
333 B
Bash
Raw Normal View History

2022-01-26 09:16:41 +01:00
host='root.grassrootseconomics.net'
2022-02-14 14:31:24 +01:00
file_to_sync='./uninstall.sh'
2022-01-26 09:16:41 +01:00
distination_dir='/usr/local/share/python/packages'
2022-02-14 14:31:24 +01:00
distination_file_name='cic-staff-uninstaller.sh'
2022-01-26 09:16:41 +01:00
user='root'
echo Syncing $file_to_sync to $distination_dir as $user on $host
2022-02-14 14:31:24 +01:00
rsync -avz --progress $file_to_sync $user@$host:$distination_dir/$distination_file_name