Page 1 of 1

backupto command

Posted: 29 Aug 2025 16:05
by altoclef
I am trying backupto for the first time.

Minimal example: I want to backup the contents of test1 folder into test2:

D:\XYtest? /flat

backupto1.png
backupto1.png (5.24 KiB) Viewed 8265 times

I started with backupto "D:\XYtest\test2\","D:\XYtest\test1\", 1,1,1,1,,1,1

However, the report (edited) says:
From: D:\XYtest\
To: D:\XYtest\test2\

Processed files:
New D:\XYtest\test1\testfile.txt -> D:\XYtest\test2\test1\testfile.txt

Created folders:
CreateDir D:\XYtest\test2\test1\
backupto has backed up the folder test1 and its contents, not just the contents as I expected. To get the results I want, I need to add a wildcard to the source parameter: "D:\XYtest\test1\*"

However, the report's From path does not include 'test1'. If the code is doing what the report says, it makes sense that the test1 folder itself is copied into test2, but that seems like a bug to me.

Please could someone confirm
  • that including the wildcard is the correct way to do what I want
  • whether the From line in the report is correct

Re: backupto command

Posted: 29 Aug 2025 18:23
by Native2904
My experiences with XY aren't that profound yet, but I copied this button from instructions and that's how I make my backups..
XYplorer_jR3nwpQIS5.jpg
XYplorer_jR3nwpQIS5.jpg (95.18 KiB) Viewed 8243 times

Re: backupto command

Posted: 30 Aug 2025 08:36
by admin
Yep, Native2904 points into the right direction: check out the sync command.

This is air code (not tested), but something like this should work you:

Code: Select all

sync "D:\XYtest\test1\", "D:\XYtest\test2\", 1, 0, 0, "ckn";