|Hi, I need help with part of bat file I want to use for backups. I can do most of it, it's the part below I need help with. The bat file will automate a Cobian backup to zip files and encrypt the files with Axcrypt. I encrypt them because next I will move the backup files to my Adrive.com online storage space manually using their application.|
1) Adrive.com only allows files up to 2GB to be uploaded so I'll use Cobian's ability to set a max size for each zip file and it will automatically span the backup across multiple zip files. I'll end up with 5-10 2GB zip files for a full backup.
2) I want to do full backups periodically with differentials between the fulls.
3) Other than by size, there is no way to tell if a backup zip file is a full or differential because Cobian doesn't allow to specify filenames for the zip files. (It names the files with the source, date and time of the backup. They advise using their log to tell which is which.) I can, of course, specify different folders to put them into.
4) My only scripting experience is with batch files/command line.
This is the part I need help with. To reduce upload time and save online space, I want to do differential backups until they get to a certain relative size, then do a full. So I'd like the bat file to check the size of the most recent differential backup (which will usually be in multiple spanned zip files named "The Source yyyy-MM-dd hh;mm;ss.zip", and then .z01, .z02, etc) and when it reaches x% of the most recent full backup (also in multiple spanned zip files) I want it to automatically do a full backup instead. How can I get it to find which are the most recent backups, add the sizes of their spanned zip files, and compare their sizes with each other?