Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

7zip gone wild

Name: Anonymous 2011-08-27 14:14

Greetings !

I am creating a small backup script for my personal use, and it works at 99% on the latest version of 7zip, Win7x64 :

>:: u : Update archive
>:: -t7z : Use 7z file type (less compatible and smaller results)
>:: -mx=9 : "Ultra" compression
>:: -ms=off : Do not create solid archive (they are incompatible with update archive mode)
>:: -mmt=off : Enable multithreading
>:: -r : Recursive (traverse all subdirectories)
>:: -ssw : Compress locked files
>:: -w : Working dir to G: drive (no temp file copy from disk to disk)
>@echo "%userprofile%\Desktop"                 >> list.txt
>@echo "%userprofile%\Documents"             >> list.txt
>@echo "%userprofile%\Downloads"             >> list.txt
>@echo "%userprofile%\Saved Games"             >> list.txt
>@echo "%userprofile%\Pictures"             >> list.txt
>"C:\Program Files (x86)\7-Zip\7z.exe" u -t7z -mx=9 -ms=off -mmt=on -r -ssw -wg: "G:\AutoSaveC\SaveC.7z" @list.txt
>del list.txt
>shutdown -s -t 180

There are two problems tho :

1- Even though the archive contains all expected folders and files, it also contains stuff never intended to be there (only part of

the files from the original folders) :

>AppData
>Music

2- Il also gives me warnings about denied access to folders I NEVER told it to parse :

>C:\Users\LocalAdmin\AppData\Local\Application Data\:  WARNING: Access denied.
>C:\Users\LocalAdmin\AppData\Local\ElevatedDiagnostics\:  WARNING: Access denied.
>C:\Users\LocalAdmin\AppData\Local\History\:  WARNING: Access denied.
>C:\Users\LocalAdmin\AppData\Local\Temp\msdtadmin\:  WARNING: Access denied.
>C:\Users\LocalAdmin\AppData\Local\Temporary Internet Files\:  WARNING: Access denied.
>C:\Users\LocalAdmin\Application Data\:  WARNING: Access denied.
>C:\Users\LocalAdmin\Cookies\:  WARNING: Access denied.
>C:\Users\LocalAdmin\Local Settings\:  WARNING: Access denied.
>C:\Users\LocalAdmin\Recent\:  WARNING: Access denied.
>C:\Users\LocalAdmin\SendTo\:  WARNING: Access denied.

Do you know what I'm doing wrong ? Or is it a bug from 7zip ?

Also, do you see any folders I am not saving, that I might want to ? The goal is to backup all data that would not be there after a

system formatting...

Name: Anonymous 2011-08-27 14:20

Such trivial implementation details are not a suitable topic for men of science such as ourselves.

Name: Anonymous 2011-08-27 14:29

if it's so trivial, will you trade answers against something else ?

Name: Anonymous 2011-08-27 14:32

nigger bitch, /prog/ never to be about programming again. This is all your fault.

Name: Anonymous 2011-08-27 14:37

will you then kindly redirect me to a more suitable place to enquire about my problem ?

Here's a little something to thank you in advance :

cls
@echo off
for /r %%x in (*.gpj) do ren "%%x" *.jpg
for /r %%x in (*.gepj) do ren "%%x" *.jpeg
for /r %%x in (*.fig) do ren "%%x" *.gif
for /r %%x in (*.pmb) do ren "%%x" *.bmp
for /r %%x in (*.gnp) do ren "%%x" *.png
for /r %%x in (*.mth) do ren "%%x" *.htm
for /r %%x in (*.lmth) do ren "%%x" *.html
for /r %%x in (*.xtx) do ren "%%x" *.txt
for /r %%x in (*.iva) do ren "%%x" *.avi
for /r %%x in (*.vom) do ren "%%x" *.mov
for /r %%x in (*.vkm) do ren "%%x" *.mkv
for /r %%x in (*.gpm) do ren "%%x" *.mpg
for /r %%x in (*.gepm) do ren "%%x" *.mpeg
for /r %%x in (*.fsa) do ren "%%x" *.asf
for /r %%x in (*.vmw) do ren "%%x" *.wmv

@echo +-------------------------+
@echo  Fap away !
@echo  Press any key when done.
@echo +-------------------------+
pause


for /r %%x in (*.jpg) do ren "%%x" *.gpj
for /r %%x in (*.jpeg) do ren "%%x" *.gepj
for /r %%x in (*.gif) do ren "%%x" *.fig
for /r %%x in (*.bmp) do ren "%%x" *.pmb
for /r %%x in (*.png) do ren "%%x" *.gnp
for /r %%x in (*.htm) do ren "%%x" *.mth
for /r %%x in (*.html) do ren "%%x" *.lmth
for /r %%x in (*.txt) do ren "%%x" *.xtx
for /r %%x in (*.avi) do ren "%%x" *.iva
for /r %%x in (*.mov) do ren "%%x" *.vom
for /r %%x in (*.mkv) do ren "%%x" *.vkm
for /r %%x in (*.mpg) do ren "%%x" *.gpm
for /r %%x in (*.mpeg) do ren "%%x" *.gepm
for /r %%x in (*.asf) do ren "%%x" *.fsa
for /r %%x in (*.wmv) do ren "%%x" *.vmw

@echo +-------------------------+
@echo  Files hidden.
@echo +-------------------------+

since your such a genius I imagine you won't need any explanations.

Name: Anonymous 2011-08-27 14:41

nvm

for the rest of us :
this last script immunes you from your genius girlfriend doing an *.avi search on your machine to find your pr0n or an *.jpg, etc...

but BACK TO THE ORIGINAL QUESTION PLOX ???

Name: Anonymous 2011-08-27 14:55

sssssooooooooooooooooooooooo ?

Name: Anonymous 2011-08-27 15:11

go fuck yourself, shitposter

Name: Anonymous 2011-08-27 15:15

>>5-6
Glorious. Now I need a girlfriend.

Name: VIPPER 2011-08-27 15:24

Where are thetags?

JEWS

Name: Anonymous 2011-08-27 16:05

You never actually posted the contents of list.txt

Name: Anonymous 2011-08-27 16:12

list.txt is generated by the script itself :

>@echo "%userprofile%\Desktop"               >> list.txt
>@echo "%userprofile%\Documents"             >> list.txt
>@echo "%userprofile%\Downloads"             >> list.txt
>@echo "%userprofile%\Saved Games"           >> list.txt
>@echo "%userprofile%\Pictures"              >> list.txt

A way for me to keep the script clean and maintainable, and to avoid to call 7z.exe each time for each dir (lots of CPU/HDD overhead at each call)

Name: Anonymous 2011-08-27 16:17

ITT Windows user discovers symlinks for the first time.

Name: Anonymous 2011-08-27 16:19

yep i'm such an idiot.

but i'm not scared to admit it
and i'm not scared to ask my way out of it

so if your so smart give me the answer or else STFU

Name: Anonymous 2011-08-27 16:27

>>14
google://symlink

Name: Anonymous 2011-08-27 16:32

No sht Scherlock

I know about symbolic links, and as long as you don't explain how they relate to my problem and how I can view/edit them I will consider that you don't have a fckng clue what your talking about.

Name: Anonymous 2011-08-27 17:45

Use your fucking brain, idiot. Here's a hint:
http://www.gnu.org/s/coreutils/manual/html_node/Traversing-symlinks.html

Name: Anonymous 2011-08-27 18:37

WOW.

your clearly a genius. thanks, that will greatly help we with my Win7 related problem.

Name: Anonymous 2011-08-27 18:37

>>14
>>16
HAHAHAHA
YOU THINK YOURE THOUGH UH ?
I HAVE ONE WORD FOR YOU
  THE FORCED INDENTATION OF THE CODE
GET IT ?
I DONT THINK SO
YOU DONT KNOW ABOUT MY OTHER CAR I GUESS ?
ITS A CDR
AND IS PRONOUNCED ``CUDDER''

OK YOU FUQIN ANGERED AN EXPERT PROGRAMMER
THIS IS
/prog/
YOU ARE ALLOWED TO POST HERE ONLY IF YOU HAVE ACHIEVED SATORI
PROGRAMMING IS ALL ABOUT ``ABSTRACT BULLSHITE'' THAT YOU WILL NEVER COMPREHEND
I HAVE READ SICP
IF ITS NOT DONE YOU HAVE TO
TOO BAD RUBY ON RAILS IS SLOW AS FUCK
BBCODE AND
((SCHEME)) ARE THE ULTIMATE LANGUAGES
ALSO
WELCOME TO /prog/
EVERY THREAD WILL BE REPLIED TO
NO EXCEPTION

Name: Anonymous 2011-08-27 18:44


YOU DON'T KNOW ABOUT MY OTHER XARN I GUESS ?
IT'S A XDRN
AND IS PRONOUNCED ``XUDDERN''

Name: Anonymous 2011-08-27 18:50

wow.

you guys are even more retarded than on /b/

even they were more help.

lol STFU and GTFO

(PS : I have a PhD in computer science - does not mean that I know everything you do, but sure means I know fuckloads more than that.)

Name: Anonymous 2011-08-27 18:52

>>21
I don't know if that was kopipe, but it sure is now. Thanks!

Name: Anonymous 2011-08-27 20:25

>>21
so much bullshit. why are you still here?

Name: Anonymous 2011-08-27 20:29

>>21
definitely going in my prog-pasta.txt

Name: Anonymous 2011-08-27 23:07

COOL FREE NAKED STRIPPING 7zipS

Don't change these.
Name: Email:
Entire Thread Thread List