[Win7/Vista] Back-up

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

  • ThinClientQ
  • Registratie: April 2010
  • Laatst online: 29-07 19:48
Hi,

Ik ben een goede backup procedure aan het maken...

Ik heb hier 2 verschillende machines; 1 Laptop, 1 PC, beide bedraad.

De bedoeling is dat een directory van de Laptop wordt gesynchroniseerd naar de PC als ik een .BAT doe uitvoeren. Alleen zou ik graag willen dat bestanden die niet gewijzigd zijn niet worden gesynchroniseerd, dit i.v.m. de snelheid. Nu lukt het back-uppen wel met XCOPY, maar dat laatste gedeelte wilt niet lukken, is dit überhaupt wel mogelijk?

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/A           Copy files with the archive attribute set (default=Y)

   /M           Copy files with the archive attribute set and 
                turn off the archive attribute, use this option
                when making regular Backups (default=Y)

   /H           Copy hidden and system files and folders (default=N)

   /D:mm-dd-yyyy
                Copy files that have changed since mm-dd-yyyy.
                If no date is given, the default is to copy
                files with a modification date before today.
                (at least 1 day before)

   /U           Copy only files that already exist in destination.

   /S           Copy folders and subfolders

   /E           Copy folders and subfolders, including Empty folders.
                May be used to modify /T.

   /EXCLUDE:file1[+file2][+file3]...

               (Windows 2000 only) The files can each contain one 
               or more full or partial pathnames to be excluded.
               When any of these match any part of the absolute path
               of a SOURCE file, then that file will be excluded.
               For example, specifying a string like \obj\ or .obj will exclude
               all files underneath the directory obj or all files with the
               .obj extension respectively.

   Copy Options

   /W           Prompt you to press a key before starting to copy.
   /P           Prompt before creating each file.

   /Y           (Windows 2000 only) Suppress prompt to confirm overwriting a file.
                may be preset in the COPYCMD env variable.
   /-Y          (Windows 2000 only) Prompt to confirm overwriting a file.

   /V           Verify that the new files were written correctly.
   /C           Continue copying even if an error occurs.

   /I           If in doubt always assume the destination is a folder
                e.g. when the destination does not exist.

   /Z           Copy files in restartable mode. If the copy is interrupted part 
                way through, it will restart if possible. (use on slow networks)

   /Q           Do not display file names while copying.
   /F           Display full source and destination file names while copying.
   /L           List only - Display files that would be copied.

   Destination Options

   /R           Overwrite read-only files.

   /T           Create folder structure, but do not copy files. Do not
                include empty folders or subfolders. 
                /T /E will include empty folders and subfolders.

   /K           Copy attributes. XCOPY will otherwise reset read-only attributes.

   /N           If at all possible, use only a short filename (8.3) when creating
                a destination file. This may be nececcary when copying between disks
                that are formatted differently e.g NTFS and VFAT, or when archiving 
                data to an ISO9660 CDROM.

   /O           (Windows 2000 only) copy file Ownership and ACL information.

   /X           Copy file audit settings (implies /O).


Bedankt voor het kijken.

Acties:
  • 0 Henk 'm!

  • OK13
  • Registratie: Mei 2010
  • Laatst online: 11:04
RoboCopy van WinInternals is wat je zoekt. Met deze tool kun je een heleboel parameters opgeven.

zie: http://technet.microsoft....rary/cc733145(WS.10).aspx
en: http://ss64.com/nt/robocopy.html

Met iets als "robocopy C:\laptop C:\pc *.* /xo" zou het moeten lukken. Zo worden alle files van C:\laptop naar C:\pc gekopieerd maar oude bestanden worden overgeslagen. Effectief worden dus alleen de nieuwe files gekopieerd.

[ Voor 41% gewijzigd door OK13 op 21-07-2010 21:10 . Reden: toelichting. ]


Acties:
  • 0 Henk 'm!

  • alt-92
  • Registratie: Maart 2000
  • Niet online

alt-92

ye olde farte

OK13 schreef op woensdag 21 juli 2010 @ 21:01:
RoboCopy van WinInternals is wat je zoekt.
Zit standaard in zowel Windows Vista als 7 dus die hoef je niet eens meer op te zoeken dan.

ik heb een 864 GB floppydrive! - certified prutser - the social skills of a thermonuclear device


Acties:
  • 0 Henk 'm!

  • OK13
  • Registratie: Mei 2010
  • Laatst online: 11:04
Goed om te weten. Want dat wist ik niet. Het fijt blijft dat je met deze tool het gewenste resultaat krijgt. :D

Acties:
  • 0 Henk 'm!

  • ThinClientQ
  • Registratie: April 2010
  • Laatst online: 29-07 19:48
OK13 schreef op donderdag 22 juli 2010 @ 07:11:
Goed om te weten. Want dat wist ik niet. Het fijt blijft dat je met deze tool het gewenste resultaat krijgt. :D
Het is gelukt _/-\o_ BEDANKT