2022-02-11 11:15:16 +01:00
|
|
|
# backup
|
2022-06-26 13:25:20 +02:00
|
|
|
for wort in $(ls -d */ | cut -f1 -d'/'); do echo $wort; tar --use-compress-program=pigz -pcf ${wort}.tar.gz ${wort}; done
|
2022-02-11 11:15:16 +01:00
|
|
|
|
|
|
|
# transfer data (SSH)
|
|
|
|
scp -P 1022 *tar.gz simono41@65.108.123.253:
|
|
|
|
|
|
|
|
# restore
|
2022-06-26 13:25:20 +02:00
|
|
|
for wort in *.tar.gz; do echo $wort; tar -pxzf $wort; done
|