Solved Robocopy Syntax Help

LiverpoolFC

New member
Local time
7:36 AM
Messages
6
Location
Australia
Hi, I use Robocopy for all my backups. I am currently trying to get my script to back up the Chrome bookmarks. These files are in a folder called "Default" and are called:

Bookmarks
Bookmarks.bak

The script I am currently using is

C:\Windows\SysWOW64\Robocopy.exe "C:\Users\John\AppData\Local\Google\Chrome\User Data\Default" M:\CHROME_BOOKMARKS_BACKUP /S /SEC

This script works fine except that it backs up ALL the files in the Default folder when what I really want is just to back up the two Bookmark files. Can anyone tell me what I have to add to this script so that it only backs up the two Bookmark files.

Thank You
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate 64 bit
CPU
i7
Motherboard
Asus
Memory
32 gig
Graphics Card(s)
GT640
Hard Drives
WD RED
Antivirus
Kaspersky
Browser
Chrome
Welcome to the forum. Add /backup.* To the end of the path
 

My Computer

Computer type
PC/Desktop
OS
win 8 32 bit
Thanks for your prompt reply but I could not get it to work.

Would it be possible to show me exactly where in the script it should go

C:\Windows\SysWOW64\Robocopy.exe "C:\Users\John\AppData\Local\Google\Chrome\User Data\Default" M:\CHROME_BOOKMARKS_BACKUP /S /SEC


Thanks
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate 64 bit
CPU
i7
Motherboard
Asus
Memory
32 gig
Graphics Card(s)
GT640
Hard Drives
WD RED
Antivirus
Kaspersky
Browser
Chrome
I have setup a script to backup a firefox profile and I used /MIR. Also since robocopy is a registered application you don't need to call the full path for the application or even the full name-just put robocopy in the script. Also the script doesn't have to be in any specific location. Robocopy - Wikipedia
 

My Computers

System One System Two

Thanks for the reply but as I am a new user to Robocopy I find it a bit confusing.

All I am really after is if someone could edit my script so that I can back up the two files that represent Chrome bookmarks.

Bookmarks
Bookmarks.bak

Thanks
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate 64 bit
CPU
i7
Motherboard
Asus
Memory
32 gig
Graphics Card(s)
GT640
Hard Drives
WD RED
Antivirus
Kaspersky
Browser
Chrome
C:\Windows\SysWOW64\Robocopy.exe "C:\Users\John\AppData\Local\Google\Chrome\User Data\Default\backup.*" M:\CHROME_BOOKMARKS_BACKUP /S /SEC
 

My Computer

Computer type
PC/Desktop
OS
win 8 32 bit
Thank you very much for your help. However this does not work. When I add backup.* nothing happens.

I actually tried that before and it seemed to me to be the sensible solution but it just does not work.

I have no idea.

As I said before there is no problem with the script if I wanted the entire "Default" folder to be backed up, but getting it to backup the two files i need is a different matter.

Thanks

John
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate 64 bit
CPU
i7
Motherboard
Asus
Memory
32 gig
Graphics Card(s)
GT640
Hard Drives
WD RED
Antivirus
Kaspersky
Browser
Chrome
Try:

Code:
Robocopy "C:\Users\John\AppData\Local\Google\Chrome\User Data\Default" M:\CHROME_BOOKMARKS_BACKUP /S /SEC Bookmarks*
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
GOLDEN

Oh! you are so GOOD !

Thank you so much, I would never have got that

Cheers

John
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate 64 bit
CPU
i7
Motherboard
Asus
Memory
32 gig
Graphics Card(s)
GT640
Hard Drives
WD RED
Antivirus
Kaspersky
Browser
Chrome

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Back
Top