Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Robocopy Syntax Help

4 Weeks Ago   #1
LiverpoolFC

Windows 7 Ultimate 64 bit
 
 
Robocopy Syntax Help

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 System SpecsSystem Spec
.
4 Weeks Ago   #2
samuria

win 8 32 bit
 
 

Welcome to the forum. Add /backup.* To the end of the path
My System SpecsSystem Spec
4 Weeks Ago   #3
LiverpoolFC

Windows 7 Ultimate 64 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 System SpecsSystem Spec
.

4 Weeks Ago   #4
townsbg

Windows 7 pro 64-bit sp 1
 
 

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 System SpecsSystem Spec
4 Weeks Ago   #5
LiverpoolFC

Windows 7 Ultimate 64 bit
 
 

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 System SpecsSystem Spec
4 Weeks Ago   #6
samuria

win 8 32 bit
 
 

C:\Windows\SysWOW64\Robocopy.exe "C:\Users\John\AppData\Local\Google\Chrome\User Data\Default\backup.*" M:\CHROME_BOOKMARKS_BACKUP /S /SEC
My System SpecsSystem Spec
4 Weeks Ago   #7
LiverpoolFC

Windows 7 Ultimate 64 bit
 
 
Robocopy Syntax Help

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 System SpecsSystem Spec
.
4 Weeks Ago   #8
Golden
Microsoft MVP

Windows 10 Pro x64 ; Xubuntu x64
 
 

Try:

Code:
Robocopy "C:\Users\John\AppData\Local\Google\Chrome\User Data\Default" M:\CHROME_BOOKMARKS_BACKUP /S /SEC Bookmarks*
My System SpecsSystem Spec
4 Weeks Ago   #9
LiverpoolFC

Windows 7 Ultimate 64 bit
 
 
Robocopy Syntax Help

GOLDEN

Oh! you are so GOOD !

Thank you so much, I would never have got that

Cheers

John
My System SpecsSystem Spec
4 Weeks Ago   #10
Golden
Microsoft MVP

Windows 10 Pro x64 ; Xubuntu x64
 
 

Quote   Quote: Originally Posted by LiverpoolFC View Post
GOLDEN

Oh! you are so GOOD !

Thank you so much, I would never have got that

Cheers

John
My System SpecsSystem Spec
Reply

 Robocopy Syntax Help




Thread Tools




Similar help and support threads
Thread Forum
Problem with VBS Syntax
I have been experimenting with running Scheduled backups with Macrium Reflect using a generated VB Script which I have successfully modified. I now wish to enhance the VBS to perform the backups only if an external drive exists (i.e. it is switched on), and if there is sufficient space for the...
Software
Syntax please help?
Drive C: won't boot up windows7. I have to repair the bootsector, as I discovered that the power cable had come off it - since discarded it as no good. I have been given the syntax below, as it is possible that the PC went looking at another drive in the tower which had XP on it, which I hadn't...
General Discussion
VBA Syntax For Set objfolder
I normally have my sent e-mail saved in the Sent Items folder. However, I often wish to save to my "Follow-Up" folder in the Outlook folder list instead. I have a macro that assigns a Category to the e-mail, but would like to add the Set objfolder command to change from saving the e-mail in the...
Microsoft Office
Syntax error.
I keep on getting some kind of Syntax error when I want to download some pictures. I can open them, but get this error when I want to save them. Does anyone have some advice here? Thanks!
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:11.
Twitter Facebook