linux_faq:ubuntu_backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux_faq:ubuntu_backup [2019/08/07 08:36]
admin
linux_faq:ubuntu_backup [2020/01/12 19:06] (current)
admin [Backup]
Line 1: Line 1:
 ====== Backup ====== ====== Backup ======
 В один поток: В один поток:
-  sudo tar -cvpzf - --exclude=/​mnt --exclude=/​sys --exclude=/​run --exclude=/​dev --exclude=/​proc --exclude=/​media --exclude=/​tmp --exclude=/​var/​log/​lastlog --exclude=/​home/​local/​RIMOS_NT_01/​usikmi/​Desktop/​Shared --exclude=/​home/​local/​RIMOS_NT_01/​usikmi/​Desktop/​W ​ --exclude=/​var/​lib/​libvirt/​qemu/​save/​Win2008.save / | openssl enc -aes-192-cbc -pass pass:1q2w3e4R1 ​-out /​mnt/​sdb1/​backup_$(date +"​%d.%m.%y_%H-%M"​).tar.gz.enc+  sudo tar -cvpzf - --exclude=/​mnt --exclude=/​sys --exclude=/​run --exclude=/​dev --exclude=/​proc --exclude=/​media --exclude=/​tmp --exclude=/​var/​log/​lastlog --exclude=/​home/​local/​RIMOS_NT_01/​usikmi/​Desktop/​Shared --exclude=/​home/​local/​RIMOS_NT_01/​usikmi/​Desktop/​W ​ --exclude=/​var/​lib/​libvirt/​qemu/​save/​Win2008.save / | openssl enc -aes-192-cbc -pass pass:xxx -out /​mnt/​sdb1/​backup_$(date +"​%d.%m.%y_%H-%M"​).tar.gz.enc
 В несколько потоков с помощью **pigz**: В несколько потоков с помощью **pigz**:
   sudo apt-get install pigz   sudo apt-get install pigz
-  sudo tar -cvpf - --use-compress-program=pigz --exclude=/​mnt --exclude=/​sys --exclude=/​run --exclude=/​dev --exclude=/​proc --exclude=/​media --exclude=/​tmp --exclude=/​var/​log/​lastlog --exclude=/​home/​local/​RIMOS_NT_01/​usikmi/​Desktop --exclude=/​var/​lib/​libvirt / | openssl enc -aes-192-cbc -pass pass:1q2w3e4R1 ​-out /​mnt/​hdd/​backup_$(date +"​%d.%m.%y_%H-%M"​).tar.gz.enc+  sudo tar -cvpf - --use-compress-program=pigz --exclude=/​mnt --exclude=/​sys --exclude=/​run --exclude=/​dev --exclude=/​proc --exclude=/​media --exclude=/​tmp --exclude=/​var/​log/​lastlog --exclude=/​home/​local/​RIMOS_NT_01/​usikmi/​Desktop --exclude=/​var/​lib/​libvirt / | openssl enc -aes-192-cbc -pass pass:xxx -out /​mnt/​hdd/​backup_$(date +"​%d.%m.%y_%H-%M"​).tar.gz.enc
 ====== Backup по расписанию ====== ====== Backup по расписанию ======
 ===== /​etc/​cron.daily/​backup ===== ===== /​etc/​cron.daily/​backup =====
  • linux_faq/ubuntu_backup.txt
  • Last modified: 2020/01/12 19:06
  • by admin