Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Archive unused zip files to new share whilst maintaining full paths & user rights?

  • 03-09-2008 9:59am
    #1
    Registered Users, Registered Users 2 Posts: 13,016 ✭✭✭✭


    I'm looking for a way to automate the move of a heap of zip files that haven't been used in a long time (>5 years) whilst keeping their full path structure and users rights in the new location so that users are able to find them again if they actually need to.

    Basically, I have a network drive with data on it from the last several years and suspect that a significant portion of it is no longer required.

    we had considered archiving to tape, but the prospect of (potentially) restoring hundreds of files makes it a no go.

    so we've set aside some room for the files on a NAS and want to move all the files onto that, but we're struggling to find something that will do the job without making a mess of it.

    is anyone aware of an application that could do this?

    thx.


Comments

  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,581 Mod ✭✭✭✭Capt'n Midnight


    if you don't mind them being on a different drive but at the same relative path you could use something like
    Robocopy D:\folder X:\folder *.zip /sec /move and other options to check

    read up and test before you use !


  • Registered Users, Registered Users 2 Posts: 13,016 ✭✭✭✭vibe666


    thanks Capt'n, as reliable as always. :)

    do you know if there is a way to make it only move folders not accessed in the last 5 years?

    there's lots of stuff there that we don't want to move.


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,581 Mod ✭✭✭✭Capt'n Midnight


    http://en.wikipedia.org/wiki/Robocopy
    /MAXAGE:n
    MAXimum file AGE - exclude files older than n days/date.
    /MINAGE:n
    MINimum file AGE - exclude files newer than n days/date.
    (If n < 1900 then n = no of days, else n = YYYYMMDD date).

    if you want the access date rather than age you may have do do a dir based on the last access but that would be a little trickier and I think backups and av might affect the time.


  • Registered Users, Registered Users 2 Posts: 13,016 ✭✭✭✭vibe666


    thanks Capt'n, I'll see if we can make that work.

    EDIT: thanks for that link, it turns out there's another link on that page to a complete list of copy switches which includes the following in addition to the ones you mentioned:
    /MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date.
    /MINAGE:n :: MINimum file AGE - exclude files newer than n days/date.
    /MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n.
    /MINLAD:n :: MINimum Last Access Date - exclude files used since n.

    (If n < 1900 then n = n days, else n = YYYYMMDD date).

    exactly what I'm after. now I just have to figure out everything else and make it work. :)


Advertisement