kn srivastava | 7 Apr 2012 09:03
Picon
Favicon

Need a batch file to backup the computer

Have anyone done backup using 7zip through a batch file? If so, can you
share your batch script with me?

If not, can you suggest me how I can do backup with 7zip? I know what to
exclude. I have file names and directories listed in a text file. I would
like to backup whole of my C:\ except those files and folders on my
exclusion list.

Any suggestions!

Thanks
Kailash

[Non-text portions of this message have been removed]

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

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)

John O'Regan | 7 Apr 2012 16:21
Picon

Re: Need a batch file to backup the computer

http://www.tedfelix.com/Technology/7zip-backups.html

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

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:
    http://docs.yahoo.com/info/terms/

(Continue reading)

kn srivastava | 7 Apr 2012 20:47
Picon
Favicon

Re: Need a batch file to backup the computer

Thank you for the information.

I have the following command.

7z a -t7z -mx=9 -mtc=on -v20m -r E:\backup.7z
 <at> C:\XXX\sekasri\Documents\cmds\7backup\include.lst -x <at> C
:\Users\XXX\Documents\cmds\7backup\exclude.lst

Scanning

C:\Users\XXX\Documents\My Music\:  WARNING: Access is denied.

C:\Users\XXX\Documents\My Pictures\:  WARNING: Access is denied.

C:\Users\XXX\Documents\My Videos\:  WARNING: Access is denied.

It seems to work in the first place. However I don't know why the above
occurs. How can I handle this?

Also all the backup goes into E:\backup.7z. How can I have multiple names
for backup file or extract backup names directly from the include.lst file?

Can I pass backup file names through a list as I am doing for exclude and
include files/directories?

Thanks
Kailash

On Sat, Apr 7, 2012 at 16:21, John O'Regan <john.a.oregan@...> wrote:

(Continue reading)

John O'Regan | 8 Apr 2012 00:14
Picon

Re: Need a batch file to backup the computer

Dear Kailash,

  Google to the rescue once again...

Access Is Denied:
http://goo.gl/uMghK

Multiple Compressed Folders:
http://goo.gl/1i0AW

I hope this helps.  I don't use 7zip's CLI myself, so apologies if the
links I suggest don't satisfactorily resolve your issues,

good luck,
John

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

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)

Michael Burek | 8 Apr 2012 05:16

Re: Need a batch file to backup the computer

Is the path for the parameter correct?:
 <at> C:\XXX\sekasri
Should it be   <at> C:\Users\XXX\sekasri

You should only be able to access your own Users folder, and not someone
else's, unless you run it as an admin.

7z only lets you create one zip file per command line. You will have to run
7z separate times for each zip file you want to create.

[Non-text portions of this message have been removed]

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

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:
(Continue reading)

kn srivastava | 8 Apr 2012 17:59
Picon
Favicon

Re: Need a batch file to backup the computer

I finally decided to go with the script at
http://chaucer.homeunix.net/pages/posts/7-zip-backup-script-for-windows25.php

set NAME=%date:~10,4%_%date:~4,2%-%date:~7,2%_%time:~0,2%%time:~3,2%
However the above is working as expected on WIN7. Any suggestions!

Thanx
Kailash

[Non-text portions of this message have been removed]

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

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@... 
(Continue reading)


Gmane