backupto command

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
altoclef
Posts: 89
Joined: 12 Oct 2012 18:54
Location: Win10 @100%

backupto command

Post 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 8204 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

Native2904
Posts: 55
Joined: 23 Apr 2025 18:48
Location: Aachen

Re: backupto command

Post 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 8182 times
Lts. 64-bit XY-Port. ƒ Cascadia Code @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
Glückauf

admin
Site Admin
Posts: 65314
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: backupto command

Post 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";

Post Reply