edps
(usa Slackware)
Enviado em 11/12/2015 - 09:04h
ede_linux escreveu:
edps,
Em relação à opção de " Checksum mismatch" estou a usar a mais correcta, o que acha? Pois o backup é mesmo isso, se estiver diferente faz cópia e substitui, senão deixa estar, não "mexe"! Coloco a questão dessa forma pois pelo que tenho lido fico com a sensação que existe vários tipos de backup, e começo a ficar confuso!
Valeu
Creio que sim, nunca usei esse programa.
Sobre o que você faz com este programa, o próprio
rsync faz de forma mais simples.
Copiando todo o conteúdo de um diretório para outro:
$ rsync -av --progress /home/edps/SlackBuilds/Packages/themes/ /mnt/backup/SLACKBUILDS/themes/
~ » rsync -av --progress /home/edps/SlackBuilds/Packages/themes/ /mnt/backup/SLACKBUILDS/themes
sending incremental file list
./
Ceti-2-theme-20150425-noarch-1.txz
408,904 100% 21.10MB/s 0:00:00 (xfr#1, to-chk=27/29)
Gray-gtk-theme-3.14-noarch-1_SBo.tgz
980,990 100% 21.76MB/s 0:00:00 (xfr#2, to-chk=26/29)
Ivy-icon-theme-0.1-noarch-1.txz
14,105,820 100% 31.95MB/s 0:00:00 (xfr#3, to-chk=25/29)
LX-Colors-themes-20150908-noarch-1_SBo.txz
115,576 100% 266.83kB/s 0:00:00 (xfr#4, to-chk=24/29)
Vertex-theme-20150718-noarch-1.txz
465,032 100% 1.01MB/s 0:00:00 (xfr#5, to-chk=23/29)
aurora-gtk-theme-3.14-noarch-1.txz
369,344 100% 806.91kB/s 0:00:00 (xfr#6, to-chk=22/29)
boje-themes-1.2.1-noarch-1_SBo.txz
701,488 100% 1.43MB/s 0:00:00 (xfr#7, to-chk=21/29)
bunsen-themes-1.1-i486-1_SBo.txz
64,256 100% 133.80kB/s 0:00:00 (xfr#8, to-chk=20/29)
cathexis-suite-themes-0.1-noarch-1_SBo.txz
2,740,348 100% 4.83MB/s 0:00:00 (xfr#9, to-chk=19/29)
elementary-xfce-0.7-noarch-1_SBo.tgz
7,634,471 100% 9.75MB/s 0:00:00 (xfr#10, to-chk=18/29)
faba-icon-theme-4.0.8-noarch-1_SBo.txz
899,904 100% 1.10MB/s 0:00:00 (xfr#11, to-chk=17/29)
faba-mono-icons-4.2-noarch-1_SBo.txz
87,588 100% 108.82kB/s 0:00:00 (xfr#12, to-chk=16/29)
faenza-icon-theme-1.3-noarch-1_SBo.txz
17,021,232 100% 12.72MB/s 0:00:01 (xfr#13, to-chk=15/29)
faience-icon-theme-0.5-noarch-1_SBo.txz
8,827,560 100% 15.82MB/s 0:00:00 (xfr#14, to-chk=14/29)
gnome-colors-5.5.1-noarch-2_SBo.txz
3,418,576 100% 5.07MB/s 0:00:00 (xfr#15, to-chk=13/29)
gtk-aurora-engine-1.5.1-i486-2_SBo.txz
61,800 100% 93.71kB/s 0:00:00 (xfr#16, to-chk=12/29)
gtk-engines-2.20.2-i486-3_SBo.txz
378,480 100% 563.43kB/s 0:00:00 (xfr#17, to-chk=11/29)
gtk-engines-unico-1.0.2-i486-1_SBo.txz
38,684 100% 57.33kB/s 0:00:00 (xfr#18, to-chk=10/29)
moka-icon-theme-5.0.11-noarch-1_SBo.txz
18,013,660 100% 14.46MB/s 0:00:01 (xfr#19, to-chk=9/29)
moka-minimal-0.1-noarch-2_SBo.txz
10,805,720 100% 24.25MB/s 0:00:00 (xfr#20, to-chk=8/29)
moka-themes-0.1-noarch-2_SBo.txz
83,996 100% 190.76kB/s 0:00:00 (xfr#21, to-chk=7/29)
murrine-0.98.2-i486-1_SBo.txz
108,660 100% 245.63kB/s 0:00:00 (xfr#22, to-chk=6/29)
murrine-themes-0.98.10-noarch-1_SBo.txz
269,896 100% 600.39kB/s 0:00:00 (xfr#23, to-chk=5/29)
numix-gtk-theme-2.4.20141208-noarch-1_SBo.tgz
49,679 100% 110.26kB/s 0:00:00 (xfr#24, to-chk=4/29)
numix-icon-theme-0.3.20151121-noarch-1_SBo.tgz
7,452,029 100% 12.25MB/s 0:00:00 (xfr#25, to-chk=3/29)
numix-icon-theme-bevel-1.0.20141021-noarch-1_SBo.tgz
4,925,572 100% 6.96MB/s 0:00:00 (xfr#26, to-chk=2/29)
numix-icon-theme-circle-1.0.20151016-noarch-1_SBo.tgz
1,797,525 100% 2.35MB/s 0:00:00 (xfr#27, to-chk=1/29)
orchis-gtk-theme-3.0.22-noarch-1_SBo.txz
235,700 100% 313.16kB/s 0:00:00 (xfr#28, to-chk=0/29)
sent 102,090,050 bytes received 551 bytes 29,168,743.14 bytes/sec
total size is 102,062,490 speedup is 1.00
~ »
* tudo o que estiver em /home/edps/SlackBuilds/Packages/themes será copiado para /mnt/backup/SLACKBUILDS/themes/
Cópia incremental, excluindo os arquivos que foram removidos na pasta original e atualizando os que foram modificados e copiando os que foram criados:
No exemplo abaixo, removo uns arquivos (LX-Colors-themes, gnome-colors e orchis-gtk-theme) na pasta de origem e crio alguns (TESTE1, 123, 000000000, 129812398128921, jkhhghjs, jdsafuytuywuda, TESTE2):
~ » rm -fv SlackBuilds/Packages/themes/LX-Colors-themes-20150908-noarch-1_SBo.txz
trash-put: `SlackBuilds/Packages/themes/LX-Colors-themes-20150908-noarch-1_SBo.txz' trashed in ~/.local/share/Trash
~ » rm -fv SlackBuilds/Packages/themes/gnome-colors-5.5.1-noarch-2_SBo.txz
trash-put: `SlackBuilds/Packages/themes/gnome-colors-5.5.1-noarch-2_SBo.txz' trashed in ~/.local/share/Trash
~ » rm -fv SlackBuilds/Packages/themes/orchis-gtk-theme-3.0.22-noarch-1_SBo.txz
trash-put: `SlackBuilds/Packages/themes/orchis-gtk-theme-3.0.22-noarch-1_SBo.txz' trashed in ~/.local/share/Trash
~ » touch SlackBuilds/Packages/themes/{TESTE1,123,000000000,129812398128921,jkhhghjs,jdsafuytuywuda,TESTE2}
Depois executo o rsync com as opções que irão por a casa em ordem, isto é, removendo o que fora removido na pasta de origem, atualizando o que fora modificado e copiando o que foi criado:
$ rsync -av --progress --update --delete-after --delete-excluded /home/edps/SlackBuilds/Packages/themes/ /mnt/backup/SLACKBUILDS/themes/
~ »
~ » rsync -av --progress --update --delete-after --delete-excluded /home/edps/SlackBuilds/Packages/themes/ /mnt/backup/SLACKBUILDS/themes
building file list ...
33 files to consider
./
000000000
0 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=31/33)
123
0 100% 0.00kB/s 0:00:00 (xfr#2, to-chk=30/33)
129812398128921
0 100% 0.00kB/s 0:00:00 (xfr#3, to-chk=29/33)
TESTE1
0 100% 0.00kB/s 0:00:00 (xfr#4, to-chk=25/33)
TESTE2
0 100% 0.00kB/s 0:00:00 (xfr#5, to-chk=24/33)
jdsafuytuywuda
0 100% 0.00kB/s 0:00:00 (xfr#6, to-chk=10/33)
jkhhghjs
0 100% 0.00kB/s 0:00:00 (xfr#7, to-chk=9/33)
deleting orchis-gtk-theme-3.0.22-noarch-1_SBo.txz
deleting gnome-colors-5.5.1-noarch-2_SBo.txz
deleting LX-Colors-themes-20150908-noarch-1_SBo.txz
sent 1,874 bytes received 151 bytes 4,050.00 bytes/sec
total size is 98,292,638 speedup is 48,539.57
~ »
~ » du -sh SlackBuilds/Packages/themes
94M SlackBuilds/Packages/themes
~ »
~ » du -sh /mnt/backup/SLACKBUILDS/themes
94M /mnt/backup/SLACKBUILDS/themes
~ »
Observe aí que o que foi criado foi copiado e os temas excluidos na origem, foram excluidos no destino.