Robocopy wont reset archive attribute with /M switch..incremental backup to zip folder...partially RESOLVED!!!

hello, OS server 2012, 2008 r2, w7 ult.
I want to make backup only files which have archive attribute set. /M switch is what I need but robocopy wont reset archive bit from subfolders and only reset bit on files in root of source folder. How to force robocopy to reset archive bit from all copied
files???
This is syntax:
@echo off
set year=%date:~10,4%
set month=%date:~4,2%
set day=%date:~7,2%
SET Now=%Time: =0%
SET Hours=%Now:~0,2%
SET Minutes=%Now:~3,2%
Robocopy c:\source c:\dest /m /s /r:1 /w:1 /log:"c:\dest\Incremental_%month%-%day%-%year% %hours%h-%minutes%m.log" /NP
"C:\Program Files\7-Zip\7z.exe" a -tzip -mx1 C:\c\Incremental_%month%-%day%-%year%-%hours%h-%minutes%m.zip C:\dest
echo Y | DEL C:\Temp\*.*
I can use attrib command but I have in working folder 900.000 files so this is not option.
edit....robocopy work as expected in 2012 standard. /M switch reset archive attribute so I can use robocopy for incremental backups.
Script: c:\a is source and c:\b is destination. c:\b\temp is temporary folder from where 7zip package backed up files to archive. After 7zip finish jod script delete all files folders from temp folder. I want to use zip archive because this will be much
easier for file system. With time I will have some zip files instead 10000000 files or folders. Zip files will have in name date and time for easier tracking. 
@echo off
set year=%date:~10,4%
set month=%date:~4,2%
set day=%date:~7,2%
SET Now=%Time: =0%
SET Hours=%Now:~0,2%
SET Minutes=%Now:~3,2%
Robocopy c:\a c:\b\temp /s /m /r:1 /w:1 /log:"c:\b\temp\Incremental_%month%-%day%-%year% %hours%h-%minutes%m.log" /NP
"C:\Program Files\7-Zip\7z.exe" a -tzip -mx1 C:\b\Incremental_%month%-%day%-%year%-%hours%h-%minutes%m.zip C:\b\Temp
set folder="C:\b\temp\"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)

Hi,
Thank you for your helpful sharing! This will help others who are fighting with similar issues.
Regards,
Mandy
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.

Similar Messages

  • Hello. My iphone 4, iOS 6.1.3 gone wild....everything is going in slow motion, every app i open is running in frames...i tried reseting the handset, with back-up, without backup(as a new iPhone) and the result is the same. Help ! Apple? Anybody ?

    Hello. My iphone 4, iOS 6.1.3 gone wild....everything is going in slow motion, every app i open is running in frames...i tried reseting the handset, with back-up, without backup(as a new iPhone) and the result is the same. My battery percentage is going down down down only by looking at my phone, imess is making me crazy, after i write the name for the recipient the keyboard appears after 2 min...and the list is looooong...everything is gone wild ! Why? What can i do ?

    I'm having similar issues just lately. The phone itself is very slow to respond to the touch, just scrolling between home screens is a chore at times. There have been about 2 incidents of random vibration from it. Closing home screen folders takes a couple of attempts. I find that I'm also having delayed keyboard responses when typing messages to my contacts.
    Also, sometimes when I press the sleep/wake button it takes about 30 seconds to register it and actually lock or wake up.
    Have you experienced the backlight failing to light up? Like if I get a message it flashes up then goes black straight after and when you press the sleep/wake or home button it lights up again but very very dimly and you have to press the sleep/wake button as if locking it and then press it again to bring the screen up properly?
    Mine is also on 6.1.3(10B329), model MD245B/A, obviously not Jailbroken, carrier unlocked from Vodafone (but that was months and months ago). Roughly 17gb of storage space left.
    This has only started happening in the last 2 weeks. Haven't tried the reset or anything yet though.

  • Backups failing with error 19: the backup disk could not be resolved, or there was a problem mounting it

    Hello all,
    Doubt this issue relates to a recent and ugly issue but sharing anyways (resolved thanks to a user here: LaPastenague)
    Time Capsule won't backup if Modem (Motorola SB6121) attached
    This was on Feb 10th resolved. Few days later I upgraded to Yosemite.  Backups were working fine since.  
    Yesterday I happen to notice my last backup was 5 days ago.  I looked in the console logs and saw:
    2/25/15 3:55:06.127 PM com.apple.backupd[2777]: Attempting to mount network destination URL: afp://Paul;AUTH=SRP@Time%20Capsule._afpovertcp._tcp.local./Data
    2/25/15 3:55:17.778 PM com.apple.backupd[2777]: NAConnectToServerSync failed with error: 2 (No such file or directory) for url: afp://Paul;AUTH=SRP@Time%20Capsule._afpovertcp._tcp.local./Data
    2/25/15 3:55:17.792 PM com.apple.backupd[2777]: Backup failed with error 19: The backup disk could not be resolved, or there was a problem mounting it.
    2/25/15 3:57:18.808 PM com.apple.prefs.backup.remoteservice[2021]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.backupd.status.xpc
    I called Apple.  Their front line was clueless. He suggested resetting the TC (latest "tower" model btw") which then a backup kicked off YEAH
    But the next hour it failed
    Called Apple again, this time to Sr Advisor.  He suggested factory reset of the TC and set up again.  Also first backup worked then rest failed
    Third call to Apple useless also.  He was asking questions I didn't feel relevant.  He also was asking me to reset the TC which I told him was done 2 hours prior. He asked me to reboot which I could NOT at that time.
    I begged him to collect data to submit to engineering, which will take days to get a reply.
    So I thought I would throw this out to the community....
    TC Is NEW (replaced from last issue).  Mac is 8 months old (iMac 27"), Os is Yosemite,  TC also new (latest model)
    Thanks...

    Yosemite is problematic on two fronts.. Networking and Time Machine.. so the combo of doing both with a Time Capsule is like bugs on bugs.
    Here is my standard list.. but your problem maybe difficult to resolve.. and my suggestion is simple.. until Apple get their act together and fix TM.. buy Carbon Copy Cloner and use that for your backup. It is solid and reliable.. even better if you use USB drive plugged into the computer and do a bootable clone.. because then you have a backup that is able to be tested for full functionality 2min after the end of the backup.
    This also starts from a factory reset.. but the reason for it is to change the configuration which is much more easily handled with factory reset to begin.. the instructions are there.. because this is my standard reply.. this is not uncommon!!
    Factory reset universal
    Power off the TC.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the TC to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    N.B. None of your files on the hard disk of the TC are deleted.. this simply clears out the router settings of the TC.
    Setup the TC again.
    ie Start from a factory reset. No files are lost on the hard disk doing this.
    Then redo the setup from the computer with Yosemite.
    1. Use very short names.. NOT APPLE RECOMMENDED names. No spaces and pure alphanumerics.
    eg TCgen5 and TCwifi for basestation and wireless respectively.
    Even better if the issue is more wireless use TC24ghz and TC5ghz with fixed channels as this also seems to help stop the nonsense. But this can be tried in the second round.
    2. Use all passwords that also comply but can be a bit longer. ie 8-20 characters mixed case and numbers.. no non-alphanumerics.
    3. Ensure the TC always takes the same IP address.. you will need to do this on the main router using dhcp reservation.. or a bit more complex setup using static IP in the TC. But this is important.. having IP drift all over the place when Yosemite cannot remember its own name for 5 min after a reboot makes for poor networking. If the TC is main router it will not be an issue.
    4. Check your share name on the computer is not changing.. make sure it also complies with the above.. short no spaces and pure alphanumeric.. but this change will mess up your TM backup.. so be prepared to do a new full backup. Sorry.. keep this one for second round if you want to avoid a new backup.
    5. Mount the TC disk in the computer manually.
    In Finder, Go, Connect to server from the top menu,
    Type in SMB://192.168.0.254 (or whatever the TC ip is which you have now made static. As a router by default it is 10.0.1.1 and I encourage people to stick with that unless you know what you are doing).
    You can use name.. SMB://TCgen5.local where you replace TCgen5 with your TC name.. local is the default domain of the TC and doesn't change.
    However names are not so easy as IP address.. nor as reliable. At least not in Yosemite they aren't. The domain can also be an issue if you are not plugged or wireless directly to the TC.
    6. Make sure IPv6 is set to link-local only in the computer. For example wireless open the network preferences, wireless and advanced / TCP/IP.. and fix the IPv6. to link-local only.
    There is a lot more jiggery pokery you can try but the above is a good start.. if you find it still unreliable.. don't be surprised.
    You might need to do some more work on the Mac itself. eg Reset the PRAM.. has helped some people. Clean install of the OS is also helpful if you upgrade installed.
    Tell us how you go.
    Someone posted a solution.. See this thread.
    Macbook can't find Time Capsule anymore
    Start from the bottom and work up.. What I list here is good network practice changes but I have avoided Yosemites bug heaven.
    This user has had success and a few others as well.
    RáNdÓm GéÉzÁ
    Yosemite has serious DNS bug in the networking application.. here is the lets say more arcane method of fixing it by doing a network transplant from mavericks.
    http://arstechnica.com/apple/2015/01/why-dns-in-os-x-10-10-is-broken-and-what-yo u-can-do-to-fix-it/

  • Restoring the DB with Online and incremental backup's

    Dear Experts,
    We are planning for a backup strategy on our Production system as below using BRTOOLS with RMAN - " Weekly Full Online Backup and Incremental backup on the remaining days'
    We need to test this before implementing it on Production system, could someone please help me with the step-step procedure/documentation for restoring the DB using "an online backup, incremental backup's and redo logs " and prerequisites if any??
    Many Thanks !!
    Regards,
    Sri

    Hi Sri,
    please have a look at the following
    http://help.sap.com/saphelp_nw70/helpdata/en/0d/d3077b4a0c11d182b80000e829fbfe/content.htm
    https://help.sap.com/saphelp_nwmobile711/helpdata/en/47/18cb034de863efe10000000a114a6b/content.htm
    Best Regards
    Marius

  • WRT610N Storage - Can't reset Archive Attribute

    I've discovered that the USB storage will not let me reset the archive bit. I can delete files but not clear this bit.
    I've looked at the user settings on the router storage and all have read/write permission.
    Anybody else see this? Suggestions/
    tia... Bob

    Check the file permission of that particular folder...Go to router setup page,create a new user and check if you able to delete.

  • Backup Worflow with Automator (using incremental backups)

    How would I go about making a workflow that backs up my HD onto an external HD, replacing newer/changed files?
    Thanks,
    Mason

    Get a backup utility that does scheduled backups. There is no built-in backup facility in OS X except the Restore option of Disk Utility that does only full cloned backups.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk (Backup, Standard, or Pro)
    4. Deja Vu (Shareware)
    5. PsynchX 2.1.1 and RsyncX 2.1 (Freeware)
    6. Carbon Copy Cloner (Freeware - 3.0 is a Universal Binary)
    7. SuperDuper! (Commercial)
    The following utilities can also be used for backup, but cannot create bootable clones:
    1. Backup (requires a .Mac account with Apple both to get the software and to use it.)
    2. Toast
    3. Impression
    4. arRSync
    Apple's Backup is a full backup tool capable of also backing up across multiple media such as CD/DVD. However, it cannot create bootable backups. It is primarily an "archiving" utility as are the other two.
    Impression and Toast are disk image based backups, only. Particularly useful if you need to backup to CD/DVD across multiple media.
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore. Also read How to Back Up and Restore Your Files.

  • My phone wont reset with the both buttons pushed down method.. anyone knows anything else? please help!

    my iphone 4 is stuck in the spinning wheel mode, ive tried reseting it with both buttons pushed down and it wont reset! anyone knows some other way to do it? please let me know! thanks

    When you push both buttons (home and on/off), you need to hold them down together for 10-12 seconds till the Apple logo appears.

  • HT1320 My ipod wont reset. I get an x with a circle around it, what does that mean?

    My ipod wont reset. I get an x with a circle around it, what does that mean?

    Hello Phoenixx56,
    This article is for that exact situation.
    iPod Displays a Red "X" Icon
    http://support.apple.com/kb/ts1463
    Resolution
    Restore iPod from Disk Mode
    Disconnect iPod from your computer.
    Manually put iPod into Disk Mode.
    Open the latest version of iTunes and connect iPod.
    Restore iPod.
    Setup Service for iPod
    If you cannot force your iPod into disk mode and restore it, then your iPod may need service. Click one of the links below to setup an iPod Service Request online or make a reservation at the Genius Bar before visiting your local Apple Retail Store.
    All the very best,
    Sterling

  • HT3209 I have been trying to download the movie Prometheus. It sticks at 793mb and hasn't moved for hours. I have 48gb of space on my i-pad and have hard resetted and turned off and switched back on, always reconnecting with wi-fi immediately. It doesn't

    I have been trying to download the movie Prometheus onto my Ipad. It sticks at 793mb and hasn't moved for hours. I have 48gb of space on my i-pad and have hard resetted and turned off and switched back on, always reconnecting with wi-fi immediately. It doesn't resume?
    I haven't even received an email stating I have been charged for it???
    Any ideas??

    Well I have an update. I decided to stay as I was so far down the road. They gave me an engineer appointment of 14 of August which was totally disgusting.
    I rang up to complain and was promised a call back as they tried to expediate my request. Never happened.
    Whilst on these calls I also questioned the validity of sending another engineer unless they first checked that my local cabinet hard an available fibre port. I was promised and promised that they would put the notes on the call and it would not be a wasted engineer visit.
    Engineer came today. Wasted visit - no ports on the cabinet.
    He was not even sure why he was sent there knowing there were no ports. Talk about the blind leading the blind.
    The incompetency of this corporation is absolutely astounding even when their customers are telling them they are going to fail they lie to your face just to appease you on the phone and move you on.
    So I ordered my switch from sky to BT on June 6th.. and so far all I have is a phone line.
    On top of this I noticed that they have charged me a late payment fee by DD and full line rental for first month. BT were so slow at installing it all that my up front line rental apparently did not cover their initialy switch over. Despite telling me I would not be charged I have been charged.
    Now as a web designer I am now tempted to create basic website and use my SEO skills to push it to top of google rankings sharing with everyone of my experience of BT.

  • My iPhone 5 is charging but wont turn on even with the hard reset and restore. Keeps showing low battery. HELP PLEASE

    My iPhone 5 shows it's charging but wont turn on even with the hard reset and restore. Just keeps showing low battery. HELP PLEASE
    I usually sleep with my phone on charge through the night and I haven't had any problem since, I left my iphone 5 charging last night and in the morning it stated 100% charged so I decided to turn the power off normally (Hold the hold button till it says slide to turn power off) I turned it off and suddenly my iphone went straight to low battery. Although I have been having weird battery percentage changes for example it would stay on 1 % for an hour or so or drain really quickly.
    I have restored it as i thought was the thing to do all it's doing it restoring and still stating low battery and I have charged it for hours +. I can't hard reset it nor restore it NEED HELP PLEASE.
    Most Apprieciated.

    Hello, skittles_5ive. 
    Thank you for visiting Apple Support Communities. 
    You may find this article helpful in troubleshooting your issue.  If all troubleshooting steps have been processed please see step 6. 
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Regards,
    Jason H.

  • Switch on the OIM for archived transaction with RFSEPA02 program

    Hi all,
    i have tried to switch on the OIM for archived transaction with RFSEPA02 program but it saying error.
    it can not be possilbe change OIM for archived transaction in GL account.
    is there any otherwise to switched on OIM for acrchived transaction.
    Regards,
    Veerababu

    HI,
    I believe, it won't be possible. Also, please note that RFSEPA02 report is no longer supported by SAP as its execution causes inconsistencies in the system (see note 175960 for further info).
    Regards,
    Eli

  • HT4623 I tried to run the new update on my phone and the screen went blank and now the only thing showing is the itunes symbol on the screen with a picture of a charger below that, it wont reset or turn off

    I tried to ru nthe new update on my phone and the screen is blank and wont reset the only thing that comes up is the itunes logo and a picture of the charger beneath that how do i fix this so my phone will turn on, this has happened twice before

    Hello, djernigan. 
    Thank you for visiting Apple Support Communities.
    When experiencing issues restoring or updating an iPhone, here are the best articles to go through.  If you received a specific error number when restoring, see the section labeledGet more help in the second article below.
    iOS: Unable to update or restore
    http://support.apple.com/kb/ht1808
    iOS: Troubleshooting update and restore issues
    http://support.apple.com/kb/ts1275
    Cheers,
    Jason H.

  • Ipod keeps freezing then wont reset

    My replacement ipod which i have only had for about 2 months keeps switching off. then wont reset unless its connected to computer. even then takes about 10 attempts to reset. when i finally get it to reset it works fine while connected to the computer but when left for a time without being used, i have to repeat all the steps again. help!

    I had that same problem with my iPod nano (4th generation), and what i did was i let the battery die then it reset itself when i charged it, and i haven't had a problem.

  • ADF BC Attribute with VC of CONTAINS Ignores Choice List on the LOV

    JDev 11g PS 1.
    Objects:
    - A view criteria with attribute defined as CONTAINS (literal)
    - An LOV on that attribute with a default list type UI hint of Choice List
    - ADF Faces query-table based in the VC
    Problem: query-table ignores the Choice List and renders an Input Text.
    Clue: Changing the operator to EQUALS causes the expected Choice List to be rendered in ADF BC.
    If this is documented in the online help or in this forum, it is escaping me.
    Anyone know the best workaround? Set the VC using EQUALS and switch it to CONTAINS in buildWhereClause() maybe?
    Thanks,
    Peter

    Frank,
    Thanks for the fast reply and for the bug entry. Unfortunately stopping work is not an option. We've come up with a solution using a query listener that replaces EQUALS with CONTAINS before the query and resets it to EQUALS after the query (otherwise the component draws the text item after the query).
    Maybe you can think of another solution to our requirement: display a single master record in the results table for a master-detail database view. For example, in an altered Oracle HR world, each DEPARTMENTS record is associated with multiple LOCATIONS records (through a DEPT_LOC table). A database view, DEPT_LOC_VW, based on that table also contains the location description and department description.
    Users want to select and then edit (on another page) a department by querying by location. If we represent DEPT_LOC_VW in the query-table component, we see multiple result rows for a single department and that is unnecessary confusion for the purpose of editing a single department.
    So we have created an alternative database view, DEPT_VW, based on DEPARTMENTS only, with an additional column -- LOC_LIST -- based on a function that returns a delimited list of all location codes for that department. This way, the user sees only one department record in the results table (although we lose the location description in the results -- not an issue) and is still able to query based on location.
    A LOCATIONS_VW view contains the location code surrounded with the delimiiter. The DeptVw view attribute LocList contains an LOV based on that database view.
    We want the view criteria to create a query condition:
    WHERE loc_list LIKE '%'||<selected location code>||'%'We thought about some kind of clever use of a subquery using a bind variable:
    SELECT...
    FROM  departments -- not DEPT_VW or DEPT_LOC_VW
    WHERE department_id IN (
       SELECT department_id
       FROM   dept_loc
       WHERE  location_id = NVL(:userSelectedLocationId, location_id);But that bind variable does not show in the view criteria selection list so it will not appear in the query component.
    Thanks again,
    Peter

  • My brand spankin' new ipod 2G Nano wont reset after freeze

    OK, got a brand new 2G Nano 4 gig when I bought my Imac. Got it maybe 3 weeks ago or so. To date I hadnt used he ipod at all. Finally got some songs and podcasts into itunes last night, synced with the ipod. Ipod is charged 100%. Went to play the podcast, and it froze. Reading on here that freezing and podcasts seems to be a big issue........lovely.
    So I tried to reset......nothing, wont reset. Tried unpugging and replugging into different USB ports, and the itunes will not even recognize the ipod. Right now its sitting on my desk with the backlight on, I'm just waiting for the battery to die and maybe I'll be able to reset or restore it
    Is there something else I should try to make the imac recognize it? Or anything else I can do to reset it?
    Thanks

    This happened to me as well and let me tell you... i was about to flip out. I couldn't believe that i upgraded to a 2nd Generation Ipod nano just to have it die within' two days of me owning it. Anyway try this it worked for me hope it works for you:
    Reset instructions differ slightly from Apple site.
    1. Toggle hold switch on (orange showing)
    2. Toggle hold switch off
    3. Hold down menu AND center button for a few seconds
    4. Try once more if it didn't work

Maybe you are looking for

  • Use employee photo in SMARTFORMS

    Dear all, As we know, we can upload employee photo so that the employee photo can be seen when user browses through transaction code such as 'PA30/PA20'. Where as the employee photo is uploaded through the transaction code OAAD so the picture is stor

  • Finding duplicate photos and hiding originals

    I thought I posted this but don't know where in cyberspace it went... sorry if it's a duplicate. Thanks, Lori, for suggestions yesterday for recreating a new library from one that unexpectedly quit. I have a functional library now but am wondering if

  • Find if in sequence editor API call

    I swear I found this somewhere once but can't find it now.  What is the API call (or other mechanism) to determine if I'm running from the sequence editor versus a UI? What I want to do is if running from sequence editor, make one call, but if runnin

  • Forms Builder 10g Crashes after opening R12 .fmb

    Hi, I'm trying to open Oracle apps R12 .fmb from Oracle forms 10g(Forms [32 Bit] Version 10.1.2.0.2 ). It errors out with the following error : "Oracle forms Designer has stopped working". I checked metalink for this error no luck. Thanks, Kiran

  • Oracle's XMLSchema Processor

    Given Oracle's below release note dated April 13, 2001 -- Does Oracle's XMLSchema processor support the May 02, 2001 W3C XMLSchema Recommendations? Since the below statement refers to the "candidate" recommendation? Information about this question is