Not recently I have looked through the backup solution for my home zoo. After looking through a number of alternatives (afbackup, backup-manager, backup2l, backintime, backupninja, boxbackup, cdbackup, cedar-backup2, chiark-backup, dvbackup, dvdbackup, faubackup, flexbackup, jpilot-backup, rdiff-backup, slbackup, storebackup, vbackup) from wikipedia I have stopped at BackupPC. There are the following reasons, why I have chosen this software:
The main idea of BackupPC is the following: it goes through the data tree to backup and retrieves only new/modified files since the last backup. The files are fetched to local filesystem and are organized in a pool, so if several clients have the same file, it will be cached only once. For home users this feature is not beneficial, as usually all boxes have different non-relative information to backup. This a behaviour of most backup software (backintime, rdiff-backup, etc).
Another modern approach is one provided by CrashPlan, which offers peer-to-peer backup with your friends (who should also have this software installed). The drawbacks of this approach might be:
Further reading:
Provided that Mail.Ru has abandoned their Linux client and Dropbox has limited the amount of clients to 3 and restricted the local filesystem to be ext4 there is a need to search for universal alternative:
Project | Supports MailRu? | Supports DropBox? | Notes |
---|---|---|---|
rclone | ![]() | ![]() | :MINUS: No two-way synchronization, see https://forum.rclone.org/t/upback-two-way-synchronization-utility-based-on-rclone/4692/5 |
CloudCross | ![]() | ![]() | :MINUS: Cannot synchronize part of the tree |
Implements First Fit Decreasing (FFD):
Implements First Fit:
dirsplit
from cdrkit – makes given number of random shuffles (500 by default) and chooses the best one (source, also part of genisoimage Debian package).Closed source (hence algorithm is unknown):
.irp
filelist for InfraRecoder.My comparison:
DVD Span
: 16176MB left on last volumedirsplit
(-a 5000
iterations): 18084MB left on last volumeSee also:
dirsplit
for 50GB3) BD DL disks:dirsplit -s47730M -a50000 -e1 -p /mnt/iso/video_ /mnt/video
Note that split size is found out in empirical way.
for file in /mnt/iso/video_*.list do echo -n "[$file]: " extents=`genisoimage -no-rr -allow-limited-size -graft-points -q -print-size -path-list "$file"` echo "$(($extents * 2048)) B = $(($extents / 512)) MB = $(($extents / 512 / 1024)) GB = $extents extents" done | sort -r -n -k 2,2
which prints something like this:
[/mnt/iso/video_2.list]: 50048901120 B = 47730 MB = 46 GB = 24437940 extents [/mnt/iso/video_3.list]: 50048890880 B = 47730 MB = 46 GB = 24437935 extents [/mnt/iso/video_1.list]: 50048743424 B = 47730 MB = 46 GB = 24437863 extents [/mnt/iso/video_4.list]: 50048741376 B = 47730 MB = 46 GB = 24437862 extents [/mnt/iso/video_5.list]: 47073021952 B = 44892 MB = 43 GB = 22984874 extents
for file in /mnt/iso/video_*.list do echo "[$file]" genisoimage -no-rr -allow-limited-size -graft-points -path-list $file -V "${file%.*}_`date +%F`" -o "${file%.*}.iso" done
rsyncd
)for host in host1 host2; do su backuppc -c "/usr/share/backuppc/bin/BackupPC_tarCreate -h $host -t -n -1 -s \* ." | 7z a -mx=9 -ms=on -mqs=on -si /mnt/mybook/backup.$host.`date +"%F"`.tar.7z; done
nmblookup
or ping
wins support = yes
and domain master = yes
configuration options has not given the desired result. I have also checked registry setting for LanManager (see 1 and 2 and 3 and 4), thinking that it is running in “hidden” mode. Finally I've traced the network traffic and found out, that broadcast UDP packets do not pass through WiFi router in direction to Windows box, what I found strange. So in this configuration nmblookup
does not reliably resolve Windows host IP address and ping
does not work either, because of domain search problem.
ping host
first, then ping host.
and get the results from one that succeedednslookup host
.Also look for latest updates on maillist.
smbclient -U user%pass //host/share$ -c dir
libarchive-zip-perl
v1.30.
The solution is either to use compression level 0, or to downgrade to v1.18. Also reported to issue #54827.
zlib
but they are not true .gz
or .zip
files.
printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - RestoreLOG.z | gunzip
For example:
printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - /var/lib/backuppc/pc/centurion/XferLOG.1.z | gunzip | egrep -v '^ (pool|create)' | less
"Девица не хочет лезть в Окно" – device not compatible with Windows.