System backup script in Perl
Posted: 7. Jun 2015, 20:03
EDIT: this script did not work as advertised, due to mtime and ctime not being accurate. As such I've deleted it.
Figured I should put this up on the forums. It handles full and differential backups. Also incremental if you want, but I don't think the pain is worthwhile for that. It uses the "new" portable CPIO format, so you can decompress backups from a Salix install DVD.
Note that it uses find to track changes, so it will not track deleted files at all. This should not be a major problem, but it's worth keeping in mind.
Anyway, here it is:
EDIT: Script removed because it consistently missed files. Sorry all. Not sure yet what alternatives exist for local/incremental backup, I will investigate when I have the time though.
Figured I should put this up on the forums. It handles full and differential backups. Also incremental if you want, but I don't think the pain is worthwhile for that. It uses the "new" portable CPIO format, so you can decompress backups from a Salix install DVD.
Note that it uses find to track changes, so it will not track deleted files at all. This should not be a major problem, but it's worth keeping in mind.
Anyway, here it is:
EDIT: Script removed because it consistently missed files. Sorry all. Not sure yet what alternatives exist for local/incremental backup, I will investigate when I have the time though.