Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Copying Veracrypt mounted container volume?

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Copying Veracrypt mounted container volume?

#1 Post by bester69 »

Hi,

I was wondering how to this properly?:
I wanted to take some backups of a mounted volume container such as a mounted Veracrypt volume container without messing the integrity file.

Im not sure if we can do this without unmounting previously the Veracrypt volume, but i read something like COW (Copy-on-write), so i think we can do this task in btrfs system files. But im thinking that a previously snapshot is needed everytime we're about to take a backup of the Veracrypt mounted volume. Can you confirm this is correct?? :?:

Steps I would apply for Veracrypy container Backup in cloud:
0- Mount Veracrypt Volume Container (edit files)
1- In BTRFS: Take a snaphot
2- Backup Veracrypt container file in btrfs-snaphot. (duplicity + wevdav)
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Copying Veracrypt mounted container volume?

#2 Post by bester69 »

I made the following script for making a backup of Truecrypt/Veracrypt's file container in Box cloud:
#!/bin/bash
#
export CLK=$(sudo ~/scripts/secrets.sh XXYY1)
export CLK2=$(sudo ~/scripts/secrets.sh XXYY4)
TRUEPATH="/LINUXDEBS/NOBACKUP/truecrypt/container.truecrypt"
TRUEBACK="/LINUXDEBS/NOBACKUP/truecrypt/"
bin="veracrypt"
#bin="truecrypt"

#Creating Veracrypt Snaphot-----------------
sudo mount -o subvolid=0 /dev/sda2 /mnt
sudo btrfs subvolume delete /mnt/snap/truecrypt
sudo btrfs subvolume snapshot /mnt/home /snap/truecrypt
sudo umount /mnt
#----------------------------------
# Cleaning Veracrypt Container (mount/umount)
mkdir ./xxBACKUP
$bin -t --dismount --force ./xxBACKUP
$bin -t --mount --non-interactive -p $CLK2 /snap/truecrypt$TRUEPATH ./xxBACKUP
sleep 5
$bin -t --dismount --force ./xxBACKUP
rmdir ./xxBACKUP
#----------------------------------
sleep 5
# Backing Up to Cloud Box
duplicity -v 4 --allow-source-mismatch --no-encryption --verbosity=6 --timeout=60 --progress --ssl-no-check-certificate /snap/truecrypt$TRUEBACK webdavs://cavachon@yahoo.es: "$CLK"@dav.box.com/dav/trures
duplicity remove-older-than 3M --force --allow-source-mismatch --timeout=60 --ssl-no-check-certificate webdavs://cavachon@yahoo.es: "$CLK"@dav.box.com/dav/trures
:o
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Post Reply