virt2/backup.sh

8 lines
196 B
Bash
Executable File

#!/bin/sh
#cd /home/www
yandex-disk start
mount /dev/disk/by-label/backup /1
d=$(date +%Y.%m.%d)
zip /1/virtual_$d.zip ./* -r 9 > /dev/null
cp /1/virtual_$d.zip /ya/backup_krovlya/virtual_$d.zip