kn srivastava | 2 Sep 2011 08:31
Picon
Favicon

Re: Need a batch file to back up the computer

The problem with Robocopy is as follows:

Robocopy sets attributes on destination folder to system and hidden

Any solution.

Regards
Kailash

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)

<*> To change settings via email:
    batchworld-digest@... 
    batchworld-fullfeatured@...

(Continue reading)

foxidrive | 2 Sep 2011 10:43

Re: Need a batch file to back up the computer

On 2/09/2011 16:31, kn srivastava wrote:
> The problem with Robocopy is as follows:
>
> Robocopy sets attributes on destination folder to system and hidden
>
> Any solution.
>
> Regards
> Kailash

It doesn't do that here.

Check your switches, perhaps.

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)
(Continue reading)

kn srivastava | 2 Sep 2011 12:39
Picon
Favicon

Re: Need a batch file to back up the computer

I am told this problem exists with Win7. Are you using robocopy on
Win7 or WinXP?

My script is as follows:

Regards/Kailash

 <at> echo off
:START

SET robo_path=C:\Windows\System32\Robocopy.exe
SET source_dir=C:\
SET dest_dir=E:\databackup
SET log_fname=C:\Users\XXXXXX\desktop\robocopy.log

REM See the robocopy documentation for what each command does.
REM /COPY:DAT :: COPY file data, attributes, and timestamps
REM /COPYALL :: COPY ALL file info
REM /B :: copy files in Backup mode.
REM /MIR :: MIRror a directory tree
REM /L :: Just list the info, don't actually do it
SET what_to_copy=/COPY:DAT /MIR

REM Exclude some files and directories that include transient data
REM that doesn't need to be copied.
SET exclude_dirs=/XD ".dsl_lib" ".emt" ".if9" "$Recycle.Bin" "boot"
"bootmgr" "Intel" "recycled" "MSOCache" "PerfLogs" "ProgramData"
"Recovery" "ssm" "SwSetup" "Temp" "Windows" "BGInfo" "Unzipped" "Flex"
SET exclude_files=/XF *.bak *.tmp *.lock *.swp *.sys ntuser.dat*
index.dat usrclass.dat desktop.ini
(Continue reading)

foxidrive | 2 Sep 2011 14:03

Re: Need a batch file to back up the computer


> On Fri, Sep 2, 2011 at 10:43, foxidrive<foxidrive@...>  wrote:
>> On 2/09/2011 16:31, kn srivastava wrote:
>>> The problem with Robocopy is as follows:
>>>
>>> Robocopy sets attributes on destination folder to system and hidden
>>>
>>> Any solution.
>>>
>>> Regards
>>> Kailash
>>
>> It doesn't do that here.
>>
>> Check your switches, perhaps.

On 2/09/2011 20:39, kn srivastava wrote:
> I am told this problem exists with Win7. Are you using robocopy on
> Win7 or WinXP?
>
> My script is as follows:
>
> Regards/Kailash
>
>  <at> echo off
> :START
>
> SET robo_path=C:\Windows\System32\Robocopy.exe
> SET source_dir=C:\
> SET dest_dir=E:\databackup
(Continue reading)

n9mfk9 | 2 Sep 2011 16:15
Picon
Favicon

path ?

hi all 
were this line reads dir can i put the path there like c:\test\test 
/f "tokens=* delims= " %%a in ('dir /b/a:A NOAA*.txt
thanks

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)

<*> To change settings via email:
    batchworld-digest@... 
    batchworld-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    batchworld-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
(Continue reading)

foxidrive | 2 Sep 2011 16:34

Re: path ?

On 3/09/2011 00:15, n9mfk9 wrote:
> hi all
> were this line reads dir can i put the path there like c:\test\test
> /f "tokens=* delims= " %%a in ('dir /b/a:A NOAA*.txt
> thanks

This puts the current directory in there, but it's just the same as echo %cd%

 <at> echo off
for /f "delims=" %%a in ("%cd%") do echo %%a

What do you need to do?

Maybe this is what you mean?

 <at> echo off
for /f "delims=" %%a in ('dir "c:\test\test\*.txt" /b /a-d') do echo %%a

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional
(Continue reading)

kn srivastava | 2 Sep 2011 19:12
Picon
Favicon

Re: Need a batch file to back up the computer

On Fri, Sep 2, 2011 at 14:03, foxidrive <foxidrive@...> wrote:
> After a short google I can see that others have the issue.  Perhaps you can add this command as the last line.
>
>
> attrib -a -s -h  %dest_dir%

There is a practical problem. If I remove my laptop from docking
station and the backup is running, the above command will not be
executed.

Regards
Kailash

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to: batchworld-unsubscribe@...
kn srivastava | 2 Sep 2011 21:29
Picon
Favicon

Re: Need a batch file to back up the computer

SET exclude_dirs=/XD ".dsl_lib" ".emt" ".if9" ".gf42" "$Recycle.Bin" "boot"

SET exclude_files=/XF *.bak *.bakx *.tmp *.lock *.swp *.sys *.log
*TIME_STEPPING.RES* Thumbs.db ntuser.dat* index.dat* usrclass.dat
desktop.ini

/XD and /XF lists are growing.

Can you tell me how I put them in a separate file and use that file here?

Regards
Kailash

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)

(Continue reading)

foxidrive | 2 Sep 2011 23:20

Re: Need a batch file to back up the computer

On 3/09/2011 03:12, kn srivastava wrote:
> On Fri, Sep 2, 2011 at 14:03, foxidrive<foxidrive@...>  wrote:
>> After a short google I can see that others have the issue.  Perhaps you can add this command as the last line.
>>
>>
>> attrib -a -s -h  %dest_dir%
>
> There is a practical problem. If I remove my laptop from docking
> station and the backup is running, the above command will not be
> executed.
>
> Regards
> Kailash

If you remove your device while a backup is running you will have a problem anyway. :-D

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
(Continue reading)

foxidrive | 2 Sep 2011 23:22

Re: Need a batch file to back up the computer

On 3/09/2011 05:29, kn srivastava wrote:
> SET exclude_dirs=/XD ".dsl_lib" ".emt" ".if9" ".gf42" "$Recycle.Bin" "boot"
>
> SET exclude_files=/XF *.bak *.bakx *.tmp *.lock *.swp *.sys *.log
> *TIME_STEPPING.RES* Thumbs.db ntuser.dat* index.dat* usrclass.dat
> desktop.ini
>
> /XD and /XF lists are growing.
>
> Can you tell me how I put them in a separate file and use that file here?

XP has a command line length limit of 8 kilobytes.  Win7 will be the same or greater.

Are you in danger of exceeding that?

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
(Continue reading)


Gmane