Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have googled and searched, but can't find the command that 7zip command line utility uses for making incremental backups. So can someone please share the command ?

Thanks

btw I found this link: http://wmug.co.uk/wmug/b/sean/archive/2009/03/20/powershell-amp-7zip-incremental-backup-solution.aspx . But it seems to be for differential backups, even though it says incremental.

share|improve this question

2 Answers 2

Should be simple, use this to create and incrementally update the archive:

7zr u -up0q3r2x2y2z1w2 {archive}.7z {path}

This page offers a reference for update options

share|improve this answer
    
Hello, what do those many options mean? –  Zhianc Apr 27 at 7:34
    
It's a map from a file state to an action. There are seven possible states. –  ArtemGr Apr 27 at 12:06

If you where to do an incremental backup, you would need to provide 7-zip with the list of the files modified (with -i@includesFile), and you would need to need elaborate such list somehow. 7-zip update operation allows to create a secondary archive with the differences (including deleted files) occurred since the base/primary archive. As said, that is properly named a differential backup.

I've found an excellent article on this topic at http://www.wpctips.com/7zipdiff.html This would be their recipe (which is slightly different from that stated on 2013-05-04 reply):

7z u {base archive.7z} {folder to archive} -u- -up0q3r2x2y2z0w2!{differential.7z}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.