+ Post New Thread
Results 1 to 13 of 13
How do you do....it? Thread, Backup folder to NAS in Technical; I've been told to setup backups for one of our network drives but I can't get anything to actually work. ...
  1. #1

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    8,854
    Thank Post
    588
    Thanked 1,902 Times in 1,315 Posts
    Blog Entries
    19
    Rep Power
    805

    Backup folder to NAS

    I've been told to setup backups for one of our network drives but I can't get anything to actually work.

    We've just got a couple of these but setting a scheduled backup doesn't work because it's FAT32 formatted. [formatting as NTFS makes it so that nobody can use it...]

    I also tried to brute force it with a scheduled .bat [XCOPY] but that doesn't work either, it just throws up an error code when I try to create the task [just random numbers]

    That .bat file works on it's own, though.


    What am I missing here?
    Last edited by X-13; 25th November 2013 at 02:10 PM.

  2. #2

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,697
    Thank Post
    143
    Thanked 542 Times in 486 Posts
    Rep Power
    148
    Nobody can then use it? How are the permissions set on it when you use NTFS?

    How do you have the schedule set up to run the bat - do you have the "Run whether user is logged on or not" option set?

  3. #3

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    8,854
    Thank Post
    588
    Thanked 1,902 Times in 1,315 Posts
    Blog Entries
    19
    Rep Power
    805
    Quote Originally Posted by 3s-gtech View Post
    Nobody can then use it? How are the permissions set on it when you use NTFS?
    No clue how the permissions are set... I may have to give formatting another shot, I'm starting to think I misread it.

    Quote Originally Posted by 3s-gtech View Post
    How do you have the schedule set up to run the bat - do you have the "Run whether user is logged on or not" option set?
    Yes and "run with highest privileges" [or whatever it actually is...]

  4. #4

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,697
    Thank Post
    143
    Thanked 542 Times in 486 Posts
    Rep Power
    148
    With some drives (Netgear ReadyNAS IME) they actually tell you to set the share permissions in Windows, without using the web interface - so once you have created a shared volume on the disc, you can set the NTFS permissions on a Windows PC and off it goes.

    Does it have a time server setup?

  5. #5

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    8,854
    Thank Post
    588
    Thanked 1,902 Times in 1,315 Posts
    Blog Entries
    19
    Rep Power
    805
    Quote Originally Posted by 3s-gtech View Post
    With some drives (Netgear ReadyNAS IME) they actually tell you to set the share permissions in Windows, without using the web interface - so once you have created a shared volume on the disc, you can set the NTFS permissions on a Windows PC and off it goes.
    I can't do that on this... it's coming up as a Windows NT 4.9 workstation.

    Quote Originally Posted by 3s-gtech View Post
    Does it have a time server setup?
    The drive? Yeah.

  6. #6

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,697
    Thank Post
    143
    Thanked 542 Times in 486 Posts
    Rep Power
    148
    Ah - that's how my Buffalo NASs show, you can't directly edit the ACLs that way then. How do you have access controls set up in the GUI?

  7. #7

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    8,854
    Thank Post
    588
    Thanked 1,902 Times in 1,315 Posts
    Blog Entries
    19
    Rep Power
    805
    Quote Originally Posted by 3s-gtech View Post
    How do you have access controls set up in the GUI?
    Erm... All I have is options to set the IP config, SMB logins and FTP ports/codepage/logins. [And bittorrent settings...]

    I've created a SMB and FTP login with read/write access.

  8. #8

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,611
    Thank Post
    1,226
    Thanked 772 Times in 670 Posts
    Rep Power
    234
    Quote Originally Posted by X-13 View Post
    Yes and "run with highest privileges" [or whatever it actually is...]
    So your new disk is acting as a SMB share somewhere on your network? When the Windows Schedualed Task is run, is that share mounted as a drive? You can make sure by adding a "net use ..." command at the start of your .bat file, before you run XCOPY.

  9. #9

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    8,854
    Thank Post
    588
    Thanked 1,902 Times in 1,315 Posts
    Blog Entries
    19
    Rep Power
    805
    Quote Originally Posted by dhicks View Post
    So your new disk is acting as a SMB share somewhere on your network? When the Windows Schedualed Task is run, is that share mounted as a drive? You can make sure by adding a "net use ..." command at the start of your .bat file, before you run XCOPY.
    XCOPY works when the .bat file is run manually, but the scheduled task doesn't work. [I was trying this out yesterday.]

    robocopy also works, but not with a task.

    It's starting to look like, after 6 years, I actually have things I need to do remotely from home...

  10. #10


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,505
    Thank Post
    227
    Thanked 848 Times in 727 Posts
    Rep Power
    287
    is your scheduled task running as the same user as you are testing it from if not may be worth adding
    net use z: \\nas\backup user:nasuser nasuserpassword
    robocopy/xcopy something to z:\wherever

  11. #11

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    8,854
    Thank Post
    588
    Thanked 1,902 Times in 1,315 Posts
    Blog Entries
    19
    Rep Power
    805
    Quote Originally Posted by sted View Post
    is your scheduled task running as the same user as you are testing it from if not may be worth adding
    net use z: \\nas\backup user:nasuser nasuserpassword
    robocopy/xcopy something to z:\wherever
    Even though it's probably bad security... I'm using the same details on the NAS and Domain. The user I'm running it as has read/write on both the share I'm trying to backup and the NAS.

  12. #12

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,611
    Thank Post
    1,226
    Thanked 772 Times in 670 Posts
    Rep Power
    234
    Quote Originally Posted by X-13 View Post
    Even though it's probably bad security... I'm using the same details on the NAS and Domain. The user I'm running it as has read/write on both the share I'm trying to backup and the NAS.
    Can you give us details of the xcopy / robocopy command you are trying? If you are trying to get either of those commands to use a lettered drive, you need to mount that drive in your .bat file before you run your xcopy / robocopy command. Just having write access to a share doesn't automatically mount it. If that doesn't seem to be the problem, can you write the output of your xcopy / robocopy commands to a log file somewhere so that you can try and see what's going on?

  13. #13

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    8,854
    Thank Post
    588
    Thanked 1,902 Times in 1,315 Posts
    Blog Entries
    19
    Rep Power
    805
    XCOPY ONLY works with a mounted drive. If I try it with UNC paths I get errors.

    Robocopy just goes through fine.


    It's the scheduling part that doesn't work. Even if I run the task manually.

    All the task is, is running a .bat file [robocopy \\server\share \\nas\folder /mir] at 9pm every Friday. [For the moment... once it works I'll get it done properly.]

SHARE:
+ Post New Thread

Similar Threads

  1. Best 'set and forget' Backup software for backing up to NAS server
    By IT_Man_Dan in forum Enterprise Software
    Replies: 22
    Last Post: 20th February 2014, 09:19 AM
  2. Virtualising Backup Exec and backing up to NAS?
    By sidewinder in forum Wired Networks
    Replies: 0
    Last Post: 29th June 2012, 10:53 AM
  3. NT Backup to NAS Shadow Copy
    By karldenton in forum Windows
    Replies: 0
    Last Post: 5th March 2012, 02:30 PM
  4. Backup Xserve to NAS servers
    By ranj in forum Mac
    Replies: 1
    Last Post: 19th February 2011, 09:27 PM
  5. VBS to Backup Folder and then Restore from Reg
    By simons2009 in forum Scripts
    Replies: 22
    Last Post: 2nd June 2009, 07:11 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •