-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backup command index path #109
Comments
Sure, it is a suggestion I can implement |
You can try the attached pre-release, using -index to specify "where" to write the data BEWARE: putting index files in other folder will weaken the test!
this seems good, but it is broken
you need something like this
You should do
=>Take care to pair .zpaq files with the correct indexes Maybe I will add more heuristic checks in the future |
OK, this is really interesting The same source code, compiled on two different versions of gcc, runs in a different way |
Just tested the new feature and it works as expected. Thank you. I'm not sure about the issue with gcc compiler that you mentioned above. I'm compiling on RedHat with gcc v8.5 and everything seems to work for me. Let me know if you would like me to test something for you. |
For me this command doesn't work.
|
I think you have a syntax error. Assuming you want to back up the "backup" folder in the current directory and name the zpaq archive backup_00000001.zpaq, the following syntax would be appropriate:
Double quotes are required for all paths as far as I know. Edit: After I took a look at the log file you posted again, I think this is what would work for you:
|
Nope. Doesn't work.
|
Do you have any mkv files in the path in which zpaqfranz is being executed ? If you execute |
Ah ok, now i have understood the logic. I thought that the command was structured like this: zpaqfranz backup (command) backup\ (source folder to backup) *.mkv (filter the type of files to backup in the source folder) -index c:\Temp Now i get that backup\ is the target folder where the backup will be stored and zpaqfranz wants the files to backup in the current folder. Now it works as expected. |
Almost. zpaqfranz syntax is quite flexible. You can simply specify full paths and back up any folder. For example, let's assume I have my mkv files in C:\Videos, then the following syntax can be used:
The result will be an archive with path C:\Backups\matroska_files_00000001.zpaq Hope that makes sense. |
In fact, it might be better to specify
This will a (add) in z:\1.zpaq 3 folders AND every .cpp files in the current directory
This will add only .exe files (from the c:\zpaqfranz folder) inside the z:\1.zpaq archive
This will add only .exe and .cpp files (from the c:\zpaqfranz folder) inside the z:\1.zpaq archive
This will everything EXCEPT .exe and .zip |
Therefore
will backup all *.cpp (in the current folder)
will take everything inside c:\nz
Will store d:\pluto and e:\paperino folder, with support for >255 paths |
BTW the backup command, with -index, only makes sense in limited cases (if you know what you are doing). The best choice is backup and that's it. I leave a few examples
This will make ONE archive (1.zpaq) with 3 versions inside
This will make THREE files (2_0001.zpaq, 2_0002.zpaq, 2_0003.zpaq) each with one version.
This will make FIVE files
zpaq's index file
zpaqfranz's index file |
With archives (single or multipart) AND backups you can use the t (test) command
With backups you can use the command testbackup
|
Why the backup command? Suppose you have 5 different parts, the sequence Using the command t (test) will check parts 1, 2 and 3, and stop (as 4 is missing), saying that everything is OK. If you created the archive with backup, you can check it with testbackup: you won't restore lost data, but you will know there is a problem. Otherwise you will think your backup is perfect, but it is not, and you cannot know. |
The main issue is resolved. Closing. |
First of all, I would like to thank you for this project. I've been using original zpaq for many years now and was glad to find your upgraded version with many useful features.
As I started testing zpaqfranz, I noticed that the backup command creates an index file and a hash file in the same directory as the archive file, however, the add command allows me to specify a path to an index file. Does that limitation have a technical explanation ? Or did I overlook a potion of the WiKi on how to do that ?
Our backup archives are stored in a B2 bucket and are locked for a period of time for protection and compliance purposes. This makes it impossible to append any data to any file in the bucket, only create new files.
So as you can see the current backup command cannot be used with such a setup.
I was wondering if you could add the ability to set a path for the index and checksum files.
The text was updated successfully, but these errors were encountered: