Quick & Easy: Backing up LXC Containers

Quick & Easy: Backing up LXC Containers

use 7-zip, it apparently does not store ownership permissions that can mess with your lxc container

  • apt-get install p7zip-full
  • backup 7z a /var/backups/sif.7z /var/lib/lxc/sif
  • restore 7z x /var/backups/sif.7z -o/var/lib/lxc/
DigitalOcean Referral Badge
Keep my site online & receive a $100 60-day credit at DigitalOcean for your VPS Hosting
Cheaper Games on Instant-Gaming
Proudly published with Ghost | Header Image by GUWEIZ@DeviantArt Creative Commons Licence