Automatic copy files to server


  1. Posts : 7
    Windows 7 Professional 64bit
       #1

    Automatic copy files to server


    I am attempting to place a backup of my documents and outlook files to my domain server. I do this every Friday.

    Everything was fine in Windows XP, we would just copy the documents folder and overwrite the one on the server. This has become a problem in windows 7.

    When attempting to copy, I get access denied, I have to constantly choose to overwrite files, or it just doesn't work at all.

    Is there a better method to drop my files on the server? I want access to them without having to use a utility.
      My Computer


  2. Posts : 1,800
    Windows 7 Pro x64 SP1
       #2

    jtoney said:
    I am attempting to place a backup of my documents and outlook files to my domain server. I do this every Friday.

    Everything was fine in Windows XP, we would just copy the documents folder and overwrite the one on the server. This has become a problem in windows 7.

    When attempting to copy, I get access denied, I have to constantly choose to overwrite files, or it just doesn't work at all.

    Is there a better method to drop my files on the server? I want access to them without having to use a utility.
    Welcome to the windows 7 forums Jtoney

    One way that I do that is to use the xcopy with the /m command, which will copy and replace each of the changed and new files on your target directory.

    xcopy "d:\documents\*.*" "O:\toshiv\mydocs" /s/m/y/c/h/r
    xcopy "d:\xfer\*.*" "O:\toshiv\downloads" /s/m/y/c/h/r

    this copies all of the files that either have changed or new from my d drive directories to my servers O: drive in those directories. I created a batch file and then created a shortcut to it and then set the shortcut to run as administrator.

    It works for me.

    Rich

    Rich
      My Computer


  3. Posts : 7
    Windows 7 Professional 64bit
    Thread Starter
       #3

    The person doing the backup is not skilled and won't want to do a command like this. Is there a simpler method?
      My Computer


  4. Posts : 1,800
    Windows 7 Pro x64 SP1
       #4

    jtoney said:
    The person doing the backup is not skilled and won't want to do a command like this. Is there a simpler method?
    Create the batch file on their computer and then create a shortcut to it.

    This way all they have to do is to click the shortcut and it will do it's thing.

    should be pretty simple.

    Rich
      My Computer


  5. Posts : 7
    Windows 7 Professional 64bit
    Thread Starter
       #5

    Will the above command copy everything? Photos, music, documents, outlook, etc?
      My Computer


  6. Posts : 1,814
    XP / Win7 x64 Pro
       #6

    How are you copying the files now?
      My Computer


  7. Posts : 5,795
    Windows 7 Ultimate x64 SP1
       #7

    If you want to simplify the process, use SyncToy. It's free, and gives you plenty of options on how to move the files.
      My Computer


  8. Posts : 1,800
    Windows 7 Pro x64 SP1
       #8

    jtoney said:
    Will the above command copy everything? Photos, music, documents, outlook, etc?
    It will copy most anything.
    Here is the info from

    xcopy /?

    Copies files and directory trees.
    XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
    [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
    [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/B]
    [/EXCLUDE:file1[+file2][+file3]...]
    source Specifies the file(s) to copy.
    destination Specifies the location and/or name of new files.
    /A Copies only files with the archive attribute set,
    doesn't change the attribute.
    /M Copies only files with the archive attribute set,
    turns off the archive attribute.
    /D:m-d-y Copies files changed on or after the specified date.
    If no date is given, copies only those files whose
    source time is newer than the destination time.
    /EXCLUDE:file1[+file2][+file3]...
    Specifies a list of files containing strings. Each string
    should be in a separate line in the files. When any of the
    strings match any part of the absolute path of the file to be
    copied, that file will be excluded from being copied. 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.
    /P Prompts you before creating each destination file.
    /S Copies directories and subdirectories except empty ones.
    /E Copies directories and subdirectories, including empty ones.
    Same as /S /E. May be used to modify /T.
    /V Verifies the size of each new file.
    /W Prompts you to press a key before copying.
    /C Continues copying even if errors occur.
    /I If destination does not exist and copying more than one file,
    assumes that destination must be a directory.
    /Q Does not display file names while copying.
    /F Displays full source and destination file names while copying.
    /L Displays files that would be copied.
    /G Allows the copying of encrypted files to destination that does
    not support encryption.
    /H Copies hidden and system files also.
    /R Overwrites read-only files.
    /T Creates directory structure, but does not copy files. Does not
    include empty directories or subdirectories. /T /E includes
    empty directories and subdirectories.
    /U Copies only files that already exist in destination.
    /K Copies attributes. Normal Xcopy will reset read-only attributes.
    /N Copies using the generated short names.
    /O Copies file ownership and ACL information.
    /X Copies file audit settings (implies /O).
    /Y Suppresses prompting to confirm you want to overwrite an
    existing destination file.
    /-Y Causes prompting to confirm you want to overwrite an
    existing destination file.
    /Z Copies networked files in restartable mode.
    /B Copies the Symbolic Link itself versus the target of the link.
    /J Copies using unbuffered I/O. Recommended for very large files.
    The switch /Y may be preset in the COPYCMD environment variable.
    This may be overridden with /-Y on the command line.


    Rich
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:33.
Find Us