Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # luksOpen /path/to/device i.e /dev/sdc1
- cryptsetup luksOpen /root/disk.img disco_cifrado
- mount /dev/mapper/disco_cifrado /mnt || exit 1
- read -p "Desea realizar el backup de /var/www a /mnt? y/n " resp
- if [ $resp != "y" ];then
- exit 1
- else
- rsync -av /var/www/ /mnt
- fi
- umount /dev/mapper/disco_cifrado
- cryptsetup luksClose /dev/mapper/disco_cifrado
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement