From: Pegasus [MVP] on


"Howard Brazee" <howard(a)brazee.net> wrote in message
news:f2eps5l5gpj6kibad4ck87p9779ubmjl0u(a)4ax.com...
> On Mon, 19 Apr 2010 20:49:33 +0200, "Pegasus [MVP]"
> <news(a)microsoft.com> wrote:
>
>>xcopy.exe has been deprecated for some time. I recommend you use
>>robocopy.exe with this switch:
>>
>> /FFT :: assume FAT File Times (2-second granularity).
>
> Does robocopy have a limit in string length?
>
> I tried this:
> robocopy "C:\Documents and Settings\brazee\Application
> Data\Mozilla\Firefox\Profiles\4iakaiea.default\" "C:\Documents and
> Settings\brazee\My Documents\" bookmarks.html /E/XN/FFT
>
>
> and got back:
>
> Source - C:\Documents and Settings\brazee\Application
> Data\Mozilla\Firefox\Pr
> ofiles\4iakaiea.default" C:\Documents\
> Dest - C:\BELFRY\and\
>
> Files :
> Options : /COPY:DAT /R:1000000 /W:30
>
> ------------------------------------------------------------------------------
>
> ERROR : Invalid Parameter #3 : "Settings\brazee\My"

While it is sometimes permissible to omit the space between parameters,
doing so is a bad habit and can catch you out, e.g. with robocopy. It is one
of my principles to always put at least one space between any two
parameters.

Having trailing backslashes for folder names is sometimes permissible,
required or forbidden. In your case it is forbidden.

I do not think that backing up bookmarks.html is sufficient for a
restoration of your Firefox bookmarks. On the other hand I have not tested
this lately.


From: Terry R. on
On 4/19/2010 1:12 PM On a whim, Howard Brazee pounded out on the keyboard

> On Mon, 19 Apr 2010 20:49:33 +0200, "Pegasus [MVP]"
> <news(a)microsoft.com> wrote:
>
>> xcopy.exe has been deprecated for some time. I recommend you use
>> robocopy.exe with this switch:
>>
>> /FFT :: assume FAT File Times (2-second granularity).
>
> Does robocopy have a limit in string length?
>
> I tried this:
> robocopy "C:\Documents and Settings\brazee\Application
> Data\Mozilla\Firefox\Profiles\4iakaiea.default\" "C:\Documents and
> Settings\brazee\My Documents\" bookmarks.html /E/XN/FFT
>
>
> and got back:
>
> Source - C:\Documents and Settings\brazee\Application
> Data\Mozilla\Firefox\Pr
> ofiles\4iakaiea.default" C:\Documents\
> Dest - C:\BELFRY\and\
>
> Files :
> Options : /COPY:DAT /R:1000000 /W:30
>
> ------------------------------------------------------------------------------
>
> ERROR : Invalid Parameter #3 : "Settings\brazee\My"
>

Hi Howard,

This has nothing to do with your backup issue, but with Firefox
bookmarks. What version of FF are you using? Since version 3,
bookmarks are now stored in a SQLite database file named
"places.sqlite". Unless you have your bookmarks exported on program
close, your bookmarks.html file will be outdated.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
From: Howard Brazee on
On Tue, 20 Apr 2010 00:20:16 +0200, "Pegasus [MVP]"
<news(a)microsoft.com> wrote:

>While it is sometimes permissible to omit the space between parameters,
>doing so is a bad habit and can catch you out, e.g. with robocopy. It is one
>of my principles to always put at least one space between any two
>parameters.
>
>Having trailing backslashes for folder names is sometimes permissible,
>required or forbidden. In your case it is forbidden.

I kept looking at syntax, but the rules weren't defined. The
documentation seemed to think the obvious stuff didn't need to be
defined. But it wan't obvious to me.

>I do not think that backing up bookmarks.html is sufficient for a
>restoration of your Firefox bookmarks. On the other hand I have not tested
>this lately.

It isn't, at least after Firefox changed to a database. But having
them as an HTML file somewhere may be useful. My batch file does a
lot more backups, I just picked the simplest example for this thread,
solving one thing at a time. Most of the others use exclude files.

--
"In no part of the constitution is more wisdom to be found,
than in the clause which confides the question of war or peace
to the legislature, and not to the executive department."

- James Madison
From: Howard Brazee on
On Mon, 19 Apr 2010 15:51:08 -0700, "Terry R." <F1Com(a)NOSPAMpobox.com>
wrote:

>Hi Howard,
>
>This has nothing to do with your backup issue, but with Firefox
>bookmarks. What version of FF are you using? Since version 3,
>bookmarks are now stored in a SQLite database file named
>"places.sqlite". Unless you have your bookmarks exported on program
>close, your bookmarks.html file will be outdated.

It's an old backup .bat file. I never got rid of that code, but it
was an easy line to test robocopy. The places.sqlite actually gets
backed up at home, after being synchronized with XMarks, so I haven't
worried about it.

--
"In no part of the constitution is more wisdom to be found,
than in the clause which confides the question of war or peace
to the legislature, and not to the executive department."

- James Madison
From: Howard Brazee on
I wonder if someone can tell me what's wrong here:

test.bat =
======================================================
dir c:\belfry\test.bat
dir e:\Copy\belfry\test.bat
robocopy "C:\belfry" "E:\Copy\belfry" test.bat /E /XN /FFT

pause
======================================================

C:\BELFRY>test

C:\BELFRY>dir c:\belfry\test.bat
Volume in drive C has no label.
Volume Serial Number is 0434-350F

Directory of c:\belfry

04/20/2010 10:40 AM 123 test.bat
1 File(s) 123 bytes
0 Dir(s) 16,010,420,224 bytes free

C:\BELFRY>dir e:\Copy\belfry\test.bat
The system cannot find the file specified.

C:\BELFRY>robocopy "C:\belfry" "E:\Copy\belfry" test.bat /E /XN /FFT

-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows :: Version
XP010
-------------------------------------------------------------------------------

2010/04/20 10:43:39 ERROR 2 (0x00000002) Creating Destination
Directory E:\Copy\
belfry\
The system cannot find the file specified.
Waiting 30 seconds... Retrying...
2010/04/20 10:44:09 ERROR 2 (0x00000002) Creating Destination
Directory E:\Copy\
belfry\
The system cannot find the file specified.
Waiting 30 seconds... Retrying...
2010/04/20 10:44:40 ERROR 2 (0x00000002) Creating Destination
Directory E:\Copy\
belfry\
The system cannot find the file specified.
Waiting 30 seconds... Retrying...
2010/04/20 10:45:10 ERROR 2 (0x00000002) Creating Destination
Directory E:\Copy\
belfry\
The system cannot find the file specified.
Waiting 30 seconds...

--
"In no part of the constitution is more wisdom to be found,
than in the clause which confides the question of war or peace
to the legislature, and not to the executive department."

- James Madison