#!/bin/sh

#rsync --dry-run -v -abt --backup-dir=nc --suffix="."$(date +"%Y%m%d%H%M")  /home/laxaurus/docker/nu_nc/db /media/luks-53d827ad-9c21-4312-ab46-f76f5ce57d03/backups

DATE="$(date +"%Y%m%d%H%M")"

#sudo tar -zcvf  /home/laxaurus/docker/nu_nc/nu-nc-db-$DATE.tar.gz /home/laxaurus/docker/nu_nc/db  
#sudo rsync -vt /home/laxaurus/docker/nu_nc/nu-nc-db-$DATE.tar.gz /media/luks-53d827ad-9c21-4312-ab46-f76f5ce57d03/backups/nu_nc
#rm /home/laxaurus/docker/nu_nc/nu-nc-db-$DATE.tar.gz

sudo tar -zcvf  /tmp/nu-nc-db-$DATE.tar.gz /home/laxaurus/docker/nu_nc/db  
rsync -vt /tmp/nu-nc-db-$DATE.tar.gz /media/luks-53d827ad-9c21-4312-ab46-f76f5ce57d03/backups/nu_nc
sudo rm /tmp/nu-nc-db-$DATE.tar.gz
