+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
Scripts Thread, Delete folder that is X days old in Coding and Web Development; does it have to be for files or can it be power shell / vbs ?...
  1. #16

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,751
    Thank Post
    3,264
    Thanked 1,051 Times in 972 Posts
    Rep Power
    364
    does it have to be for files or can it be power shell / vbs ?

  2. #17

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,935
    Thank Post
    886
    Thanked 1,692 Times in 1,471 Posts
    Blog Entries
    12
    Rep Power
    446
    Quote Originally Posted by mac_shinobi View Post
    does it have to be for files or can it be power shell / vbs ?
    Can be any of those if it does the job.

  3. #18

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,751
    Thank Post
    3,264
    Thanked 1,051 Times in 972 Posts
    Rep Power
    364
    Quote Originally Posted by FN-GM View Post
    Can be any of those if it does the job.
    1. Is this on a unc path or a mapped network drive ?2. O.S wise is this going to be run direct on the server or as a startup/logon script on the clients and what OSes are we talking about3. Have you got a guide on directory structure and does the age of* Files* Folders* Sub-FoldersCount when taking into consideration age of the date last modified propertys ??

  4. #19

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,935
    Thank Post
    886
    Thanked 1,692 Times in 1,471 Posts
    Blog Entries
    12
    Rep Power
    446
    Quote Originally Posted by mac_shinobi View Post
    1. Is this on a unc path or a mapped network drive ?2. O.S wise is this going to be run direct on the server or as a startup/logon script on the clients and what OSes are we talking about3. Have you got a guide on directory structure and does the age of* Files* Folders* Sub-FoldersCount when taking into consideration age of the date last modified propertys ??
    1. None its a local drive on a server
    2. It will run as a scheduled task on the server
    3. Its the SIMS Doc storage so that will give you an idea.
    Folder> Lots of subfolders > More Sub Folders.

  5. #20

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,406
    Thank Post
    368
    Thanked 639 Times in 521 Posts
    Rep Power
    158
    Quote Originally Posted by FN-GM View Post
    3. Its the SIMS Doc storage so that will give you an idea.
    Folder> Lots of subfolders > More Sub Folders.
    Don't touch the DocStorage folder. Go into SIMS and run the unlinked documents routine if you really want to tidy it up. Still I would get the Data Manager to do it.

  6. #21

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,935
    Thank Post
    886
    Thanked 1,692 Times in 1,471 Posts
    Blog Entries
    12
    Rep Power
    446
    Quote Originally Posted by matt40k View Post
    Don't touch the DocStorage folder. Go into SIMS and run the unlinked documents routine if you really want to tidy it up. Still I would get the Data Manager to do it.
    I am cleaning up the backups of the sims DocStorge not the original.

  7. #22

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,406
    Thank Post
    368
    Thanked 639 Times in 521 Posts
    Rep Power
    158
    Bit confussed why you backup DocStorage (by dbAttach), I normally just do a robocopy\ntbackup\whatever of the main docstorage. I can make TidyBackups support it if you want.

  8. #23

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,935
    Thank Post
    886
    Thanked 1,692 Times in 1,471 Posts
    Blog Entries
    12
    Rep Power
    446
    Quote Originally Posted by matt40k View Post
    Bit confussed why you backup DocStorage (by dbAttach), I normally just do a robocopy\ntbackup\whatever of the main docstorage. I can make TidyBackups support it if you want.
    Its all put in by another organisation under the instructions of capita. They wont support it if i mess about with the backup they set.

  9. #24

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,406
    Thank Post
    368
    Thanked 639 Times in 521 Posts
    Rep Power
    158
    Mmm... I question why they would be copying around 20gb each time for no reason - reports don't tent to be that import - if I spend a lot of time creating one, I export it. If they manage it, I'd ask them to tidy it. After all, you don't know what's safe to delete

  10. #25

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,935
    Thank Post
    886
    Thanked 1,692 Times in 1,471 Posts
    Blog Entries
    12
    Rep Power
    446
    Quote Originally Posted by matt40k View Post
    Mmm... I question why they would be copying around 20gb each time for no reason - reports don't tent to be that import - if I spend a lot of time creating one, I export it. If they manage it, I'd ask them to tidy it. After all, you don't know what's safe to delete
    I think your missing the point, im only deleting old backups not the stuff itself.

  11. #26

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,406
    Thank Post
    368
    Thanked 639 Times in 521 Posts
    Rep Power
    158
    I think you've missed what I'm trying to say.

    DMS - Document Management Server - a windows service created by Capita for SIMS .net
    DocStorage - The physical Windows Directory DMS uses

    If you open cmd
    cd "c:\program files\sims\sims .net document server"
    (or cd "c:\program files (x86)\sims\sims .net document server")
    dmconfig

    it'll output

    directory: s:\docstorage
    backup directory: s:\docstorage\backup (or whatever)
    etc
    We, like most people have a scheduled task to backup the SIMS database, using dbattach, now if you add /DMS (or tick the box if you do it manually), it will perform a docstorage\dms (sims reports etc) backup, what this does is make a copy of the docstorage folder - in this case, s:\docstorage - into to a subfolder (date based) in the docstorage backup folder - in this case, s:\docstorage\backup.

    What I'm saying is:

    1/ This IMHO is pointless - maybe if you have the backup directory to a separate (non-raided) drive (along with the sql backups), then maybe it might useful.
    2/ I can update TidyBackups to compress and\or remove old dms backups which are located in the docstorage backup directory. Not the docstorage - this must not be tidyied directly.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 4
    Last Post: 25th November 2007, 10:44 PM
  2. That is the right password!
    By Ric_ in forum *nix
    Replies: 9
    Last Post: 27th July 2007, 09:23 AM
  3. Replies: 1
    Last Post: 21st January 2007, 02:51 PM
  4. To VOIP or not to VOIP, that is the question
    By localzuk in forum Wireless Networks
    Replies: 10
    Last Post: 11th December 2006, 10:16 AM
  5. Replies: 15
    Last Post: 15th September 2006, 09:01 PM

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
  •