CLEAR backup files older than ....

Hi,
Considering the device NSS4100.
A backup job has been created to backup all data to one of the HDD running every day.
Is there a way to automatically clear (delete) the backup files older then a certain date avoiding filling up the HDD backup ?
Thank you!
Dan

Hi,
I have mapped the NSS4100 as a network drive for a windows xp computer and I have tried use the xcopy command.
It seams that the xcopy does not copy all the subfolders.It works only for the first subfolder under the main folder.
xcopy /d /e /i /c /y Y:\RAIDA\* Y:\RAIDC\backup\backup_sh\backup\
I have tried the command on a windows drive in it performs well.
Any other suggestions?
Merci,
Dan

Similar Messages

  • Will the backup metadata older than 10 days be deleted automatically?

    If the CONTROL_FILE_RECORD_KEEP_TIME parameter is set to 10, will the backup metadata older than 10 days be deleted automatically?----No.151

    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmarchi003.htm#sthref58

  • How to delete Folders and Files older than 10 day ?

    If I use this below command, I am able to delete only the files and files in sub-folders older than 10 day,
    forfiles /p "D:\Testing\Sample" /s /d -10 /c "cmd /c del /s /q @file"
    Please help...
    Thanks

    Hello Raman459,
    please see this blog entry:
    http://elderec.org/2012/02/scripting-delete-files-and-folders-older-than-x-days/
    Your command is ok for files, for folders you need to do another command:
     forfiles -p "D:\Testing\Sample" -d -10 -c "cmd /c IF @isdir == TRUE rd /S /Q @path"
    If this post solved your question, please mark as an answer, or if it helped your quest, please vote as helpful. Thank you.
    Thank you,
    F. Schubert
    System Administrator
    MCP | Microsoft Certified Professional
    MCTS 70-640 | Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    MCTS 70-642 | Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration
    MCTS 70-643 | Microsoft Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuring
    MCTS 70-680 | Microsoft Certified Technology Specialist: Windows 7, Configuration

  • Need to backup archivelog older than 10 days..

    Hi,
    i want to backup archive log older than 10days using rman and that archive log also.. let me know the syntax..
    Thanks

    Hi,
    Spend some time with your friend Oracle documentation.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup003.htm
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14193/toc.htm
    - Pavan Kumar N

  • PowerShell: Script to delete files older than X days

    Hi All,
    I am testing a script to delete files and I have it written down in my notepad as below:
    $foldername = $args[0]
    $maxage =      $args[1]
    gci $foldername | Where-object {($_-is [io.fileinfo]) -and ($_.lastwritetime -lt (get-date).AddDays(-$maxage) ) } |
    remove-item -whatif
    Question: When i try to run the script and  pass the parameters $foldername and 30 it doesn't return anything. I am expecting it to return with -Whatif
    To execute the script I wrote:
    .\myscipts\del.ps1  cmd2 30
    cmd2 is the name of the folder in my drive and 30 is ($maxage)  number of days old.
    Thank-you
    SQL 75

    Thansks jrv, looks good! One more thing I wanted to ask do you know what it means by the error:
    "An Empty Pipe Element is not Allowed" I altered my script a bit but it gives me this error. and I am passing no parameters when i call the script. My Script I created is below:
    $name = $args[0]
    $chew = $args[1]
    IF ( $args.count -lt 2)  { Write-host "Please provide 2 parameters for this to work"
                    exit 1 }
    GCI $name | Where-object { $_-is [io.fileinfo]  -and ($_.lastwritetime -lt (get-date).AddDays(-$chew))}
     | remove-item -whatif
    Thank-you
    SQL 75

  • CPIO backup for more than 2 gb files

    Hi
    I have installed ECC6 on AIX 6.1 with oracle 10g.
    I want to take cpio backup , but some files are more than 2 gb, can not copy through cpio.
    any option is there in cpio for backup files more than 2gb?
    I dont't want to use tar.
    regards
    vijay.

    Vijay,
    The cpio command is not enabled for files greater than 2GB in size due to limitations imposed by XPG/4 and POSIX.2 standards.
    cpio does not preserve the sparse nature of any file that is sparsely allocated. Any file that was originally sparse before the restoration will have all space allocated within the filesystem for the size of the file.
    [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds1/cpio.htm]
    check following link for detailed info.
    Hope this helps.
    Manoj

  • Bug: Duplicates not detected when importing photos older than year 2001

    If you import photos taken before 1st of January 2001 00:00:00, duplicates will not be detected even if you select the "Ignore duplicates" option on import. The files will be imported twice into the same location with a "-2" postfix added to their name.
    Technical details (to help developers):
    To detect duplicates, Lightroom uses a so called import hash (AgLibraryFile.importHash in the database) that has the following form:
         <capture_time><original_filename><file_size>,
    where:
    <capture_time> - interval in seconds between 1st Jan, 2001 00:00:00 and capture time recorded in Exif,
    <original_filename> - name of source file before import,
    <file_size> - file size in bytes.
    The problem here is the <capture_time> part, since it gets negative for files older than 2001, since 1st Jan 2001 is sort of  considered the beginning of time (called "epoch" in computing). Lightroom seems to get confused on negative timestamps.

    I will report this bug.  Thanks!

  • Backup file corrupted- How do I recover or locate older backup files?

    I synced my original iPhone (with 2.0 software) a few times last night to make sure everything I had on the iPhone was synced to my computer before I restored it, and sold it on ebay. It backed up the iPhone a few times and always wanted to restore it everytime. Well the last time I attempted to sync the iPhone I interrupted the backup process by 'x-ing' out of it during the sync. Now I am trying to get my 3G iPhone synced with the backup of my original iPhone and it is saying that the file is corrupt. Obviously this is because I interrupted the backup process.
    So my question is: Is there a way for me to locate an older backup file that may only be an hour older than the corrupt file?
    In the preference settings in iTunes I can see the backup files for my phone, but it only lists one, which is the corrupt one. And I searched the finder for recent files, hoping I could find the corrupt file, locate the folder its in and there find older non-corrupt files. Alas, no luck.
    I've already restored the original iPhone so the info is gone from that phone. Is there any hope of finding a non-corrupt backup file? Please help.

    You can find your backup file here:
    /Users/YourUserName/Library/Application Support/MobileSync/Backup/
    It seems that iTunes lists all of the ones that are in that folder.
    I just lost my backup, too. More than a year's worth of settings. I can't find any way of "fixing" the corrupt backup. It seems that photos are gone forever, if they weren't imported into iPhoto, but I did find this software to recover notes, sms, and call logs:
    http://homepage.mac.com/vaughn/msync/#VER
    The developer seems like kind of a passive aggressive borderline extortionist, but the software seems to work.

  • Trying to locate a large backup file to clear space on hard drive

    A while ago I backed up my Mac Book Pro to an external hard drive through time machine.  I purchased a Time Capsale and when I went to change my backup data to that device I stored the 300+ gb of back up on my computer as a just in case place.  Everything worked out and I a trying to clear that space up on my computer, but I can not seem to locate it.  As you can see in the picture below, I am being told that I have a ton of space being taken up by back up data.  Any ideas on how i can locate it?  FYI, I have already used omni sweep and cannot locate it as well as created a smart folder, which I used to try a narrow down files larger than 1 gb and nothing showed up.  Much thanks!

    This may find it.  I obviously can't replacte the problem on my system disk but I can can guess how to find it on yours. 
    Click on the system disk image (Macintosh HD) on your desktop and the command-F.  Tell it so search on "This Mac".  Search for Backups.backupdb.  Then option-click Show in Enclosing Folder.

  • Deleting backups older than a month

    Hi all,
    I'm trying to delete backups that are older than a month. I've performed the following steps.
    1. Click on time machine
    2. Navigate to a month ago
    3. Navigate to "Macintosh HD" and select all items
    4. Click on the gears the "Delete all backups .."
    This delete all backups, even my current ones. How can I delete just "old" versions from a snapshot in time (say x) back to the beginning of backups and keep everything with time > x?
    Thanks,
    Todd

    +That won't screw up the database will it?+
    Probably. Time Machine uses hard links to keep track of its previously backed up files. You can read how Time Machine uses hard links in this Ars Technica review.
    http://arstechnica.com/reviews/os/mac-os-x-10-5.ars/14
    To make sure you keep the hard links intact launch the Time Machine browser from the dock. Click on your hard drive in the sidebar. Don't select any folders or files in the window. Use the white ladder lines on the right to navigate to the backup you wish to delete. Click on the button with the gear and select Delete Backup.

  • I have had a series of Macs.  They have been backed up with Time Machine. I am trying to restore TM backup files from the older Macs using my new MacBook Pro.  No go.  What do I do ?

    I have had a series of Macs.  They have been backed up with Time Machine. I am trying to restore TM backup files from the older Macs using my new MacBook Pro.  No go.  What do I do ?

    I am trying to restore TM backup files from the older Macs using my new MacBook Pro.  No go.
    Migration Assistant (Finder > Applications > Utilities > Migration Assistant) is the tool that you would use to restore backups from older Macs to another Mac.
    Details are here:   http://pondini.org/OSX/MigrateLion.html   The same info applies for Mavericks and Yosemite.   If you are saying that this is a "no go".....where are you getting stuck?  What error messages do you see?

  • I have an older IMAC mid 2007 intel core.  I want to transfer my backup files from an older Maxtor drive to a new one.  My old drive is not support by Yosemite.  Can I transfer the files to a new supported drive?

    I have an older IMAC mid 2007 intel core.  I want to transfer my backup files from an older Maxtor One Touch drive to a new one.  My old drive is not support by Yosemite.  Can I transfer the files to a new supported drive?  I haven't bought a new one yet.  Any suggestions as to which new one to purchase?

    See if you can get the drive to mount. See mount section of 1st link.
    Disk Unmount Using Terminal
    Disk Utility – Force Mount Disk

  • Need help restoring iPhone 4s to an older backup file instead of most recent backup

    My year old iPhone 4 was stolen a few months ago, bought the new 4s in November, but due to a broken laptop screen i could not restore the new phone to my backup on itunes. Finally had the laptop fixed and I accidentally backed up the 4s, which only had maybe 1/8th of the numbers and contacts i had in my previous phone. I'm in dire straights without the rest of these contacts.. How do i restore to an older backup copy of my old phones data?
    Im running windows 7 and i found access to a file folder that looks like an overall backup file with several different backup files from different dates within: 
    C:\Users\<my_user_name>\AppData\Roaming\Apple Computer\MobileSync\Backup 
    There are multiple files inside that backup folder but only two are relevant to my issue and they read as follows:
    C:\Users\<my_user_name>\AppData\Roaming\Apple Computer\MobileSync\Backup\0d7dbdee01749f0c89aa0fb2512304dc33afbee8 (most recent; backed up 1/6/2012)
    C:\Users\<my_user_name>\AppData\Roaming\Apple Computer\MobileSync\Backup\1ed0d70a016d0db33221c560087e559908677a60 (backup file i want to restore to; backed up 7/7/2011)
    How do i restore my phone to the backup file from this past july, and not the one from today?

    Your getting into dev stuff there. stop. Right click on your iPhone name in iTunes on the left hand pane, select restore from back up and select an older back up.

  • Report on data in CSV File that is older than dates provided

     Hello,
    I have the following data in a csv file:
    Server1 user1 8/12/2014 16:18
    Server1 user2 3/21/2014 12:33
    Server1 Admin 6/13/2013 15:34
    Server2 user3 8/14/2014 7:34
    Server2 Admin 11/14/2013 7:30
    Server2 user4 8/12/2013 8:03
    Server3 user5 8/14/2014 7:34
    Server3 user1 7/14/2014 7:30
    Server3 user3 6/12/2014 8:03
    Server4 user5 8/14/2013 7:34
    Server4 user2 6/12/2013 7:30
    Server4 user3 2/12/2013 8:03
    I'm hoping Powershell can help create csv reports of the following:
    Report #1:
    Create a CSV report of all Servers that have been logged into by users in the past 3 months and list in the report the users and times for each login in the past 3 months.  Basically for this report it would be to include the relevant lines from
    the input and not report on logins older than 3 months (so multiple lines of login per server is that is what the input file had).
    For this report I would expect to see the following output:
    Server1 user1 8/12/2014 16:18
    Server2 user3 8/14/2014 7:34
    Server3 user5 8/14/2014 7:34
    Server3 user1 7/14/2014 7:30
    Server3 user3 6/12/2014 8:03
    Report #2:
    List all Servers that haven't been logged into in the past 3 months.  For this report I would expect to see only Server4.  I don't need to see the list of users for this report if that's possible.  So just a list of each server that has not
    been logged into in the past 3 months.
    Is this Something Powershell can do for me? Even if I have to create two scripts and run two scans to create two separate reports is fine. Where would I start with writing this type of script?
    Thank you.

    Yeah, each column in the CSV needs to have a descriptive header. Here's what I used to quickly test that example script I posted above:
    loginDetails.csv:
    Server,User,Date
    Server1,user1,8/12/2014 16:18
    Server1,user2,3/21/2014 12:33
    Server1,Admin,6/13/2013 15:34
    Server2,user3,8/14/2014 7:34
    Server2,Admin,11/14/2013 7:30
    Server2,user4,8/12/2013 8:03
    Server3,user5,8/14/2014 7:34
    Server3,user1,7/14/2014 7:30
    Server3,user3,6/12/2014 8:03
    Server4,user5,8/14/2013 7:34
    Server4,user2,6/12/2013 7:30
    Server4,user3,2/12/2013 8:03
    Output of example from above:
    Under 3 Months - Server1 user1 8/12/2014 16:18
    Over 3 Months - Server1 user2 3/21/2014 12:33
    Over 3 Months - Server1 Admin 6/13/2013 15:34
    Under 3 Months - Server2 user3 8/14/2014 7:34
    Over 3 Months - Server2 Admin 11/14/2013 7:30
    Over 3 Months - Server2 user4 8/12/2013 8:03
    Under 3 Months - Server3 user5 8/14/2014 7:34
    Under 3 Months - Server3 user1 7/14/2014 7:30
    Under 3 Months - Server3 user3 6/12/2014 8:03
    Over 3 Months - Server4 user5 8/14/2013 7:34
    Over 3 Months - Server4 user2 6/12/2013 7:30
    Over 3 Months - Server4 user3 2/12/2013 8:03
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • /etc/postfix/virtual_users.db is older than source file...

    /etc/postfix/virtual_users.db is older than source file /etc/postfix/virtual_users
    is the error I am getting. My server is working great, but my mailing lists are not working for my virtual domains. I tried deleting the entire mailing list, re-adding it, doing the fix_url to the domain, but when I send it an email I am getting:
    Recipient address rejected: User unknown in virtual alias table
    Which I assume is there, due to some error in the virtual_users.db file. no?
    I have done the 'sudo postmap /etc/postfix/virtual' followed by 'sudo postfix reload'
    but nothing there.
    Help?

    Yes, that solved it, and I will mark it as solved, however the issue still remains that the email address (which is a mailman list) is not part of the virtual alias table. Any other user that is 'virutally hosted' has the full [email protected] as a shortname. But obviously mailman isnt entering the mailman name into the virtual users database for postfix to read.
    Any insight?

Maybe you are looking for