Solved Robocopy Syntax Help

LiverpoolFC

New member
Local time
12:39 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 My Computer

At a glance

Windows 7 Ultimate 64 biti732 gigGT640
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 My Computer

At a glance

win 8 32 bit
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 My Computer

At a glance

Windows 7 Ultimate 64 biti732 gigGT640
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 My Computers

  • At a glance

    Windows 7 pro/Windows 10 ProIntel i7 860 Quad core 2.8 ghz8 gbATI Radeon HD 5770 1 gb ram
    Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    HP Pavillion Elite HPE-250f
    OS
    Windows 7 pro/Windows 10 Pro
    CPU
    Intel i7 860 Quad core 2.8 ghz
    Memory
    8 gb
    Graphics Card(s)
    ATI Radeon HD 5770 1 gb ram
    Monitor(s) Displays
    Alienware 25 AW2521HF & Viewsonic
    Screen Resolution
    1920 x1080 & 1680x1050
    Hard Drives
    WD blue 1 tb & 500 gb.
    Browser
    FF of course.
    Other Info
    https://www.bestbuy.com/site/hp-pavilion-elite-desktop-intel-core-i7-processor-8gb-memory-1tb-hard-drive/9921493.p?skuId=9921493
  • At a glance

    Windows 2012 R2 Data center/Linux Minti3 9100 3.6GHz, 8M cache, 4C/4T8GB 2666MT/s DDR4 ECC UDIMM
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell Poweredge T140
    OS
    Windows 2012 R2 Data center/Linux Mint
    CPU
    i3 9100 3.6GHz, 8M cache, 4C/4T
    Memory
    8GB 2666MT/s DDR4 ECC UDIMM
    Monitor(s) Displays
    Viewsonic
    Screen Resolution
    1680x1050
    Hard Drives
    1 TB & 750 GB
    Other Info
    https://www.dell.com/en-us/work/shop/productdetailstxn/poweredge-t140?~ck=bt
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 My Computer

At a glance

Windows 7 Ultimate 64 biti732 gigGT640
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 My Computer

At a glance

win 8 32 bit
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 My Computer

At a glance

Windows 7 Ultimate 64 biti732 gigGT640
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 My Computer

At a glance

Windows 10 Pro x64 ; Xubuntu x64Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz16GB Corsair Vengance DDR3 @ 661 MHz Dual Cha...EVGA NVidia GTX 560 1024MB
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 My Computer

At a glance

Windows 7 Ultimate 64 biti732 gigGT640
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 My Computer

At a glance

Windows 10 Pro x64 ; Xubuntu x64Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz16GB Corsair Vengance DDR3 @ 661 MHz Dual Cha...EVGA NVidia GTX 560 1024MB
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