Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

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

  • 03-09-2008 10: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: 98,147 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: 98,147 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
Advertisement