Automated backup and update of configs after pacman upgrade

First, after upgrade do
#updatedb && locate .pacnew >newconfigs
Then, check entries - read caution below
Important - remove any entries (e.g., password files) that need careful, individual updating.
But, for bulk updating these scripts are handy.
(p.s., thanks for the replies)
#vi newconfigs
Make backup directory
#mkdir -p /home/original_configs
To backup original(s)
#for i in $(cat newconfigs |sed 's/.pacnew//'); do cp -v $i /home/original_configs/ ; done
To overwrite original(s) with <file>.pacnew
#for i in $(cat newconfigs); do cp -v $i `echo $i |sed 's/.pacnew//'`; done
You may wish to keep your .pacnew files in their
(1)respective directories, (2)move them all to a central directory, or, (3)delete them
(1) do nothing
(2) choose or make directory to back them up to, say, mkdir -p /home/pacnew_configs,
      then issue this command
     #for i in $(cat newconfigs); do mv -v $i /home/pacnew_configs/; done
(3) #for i in $(cat newconfigs); do rm -v $i; done
Last edited by mssgs (2009-11-13 02:37:24)

I wouldn't like any kind of automated procedure messing around with my system's configuration files. My preferred way of dealing with .pacnew files is using `diff /foo/bar{,.pacnew}' to get an overview of the changes and then either 1) adding the changes to the original config and deleting the .pacnew file, or 2) introducing my modifications to the .pacnew file and moving it to the location of the original file. I'm quite sure there is a better way to handle configuration changes, but the amount of .pacnew files I've dealt with so far is very limited to warrant investigating other ways.
Your instructions are way too dangerous, in my opinion. Imagine the disaster if you happened to overwrite your /etc/{passwd,shadow} with the one that comes with an update. All user accounts and their passwords would be lost.

Similar Messages

  • Backups and exports taking longer after Oracle upgrade 8.1.7 to 9.2.0.6

    We recently upgraded Oracle from 8.1.7 to 9.2 and also applied HP-UX OS patches after the upgrade....now the backups, exports and batch jobs are running little longer (1 hour longer)...any known issues?

    For Batch jobs -- Try analyzing your database schema's referred by batch jobs. Also look if you have suff o/s resources as recommended by oracle for running Oracle 9i software.
    For backups -- Check the size of your dmp file before upgradation and after upgrading to 9i. If you do not find major diff in size then it could be a resource issue like cpu usage / io / memory.
    Thanks,
    http://askyogesh.com

  • Had a recent crash on my macbook, was previously using OS 10.6 I think. Restored from recent Time Machine backup and updated to OS 10.8.2 and now I cannot open Logic Pro 9. I get a 'No entry' Icon and a not supported on this type of Mac message. I cannot

    Had a recent crash on my macbook, was previously using OS 10.6 I think. Restored from recent Time Machine backup and updated to OS 10.8.2 and now I cannot open Logic Pro 9. I get a 'No entry' Icon and a not supported on this type of Mac message. I cannot update either as anything up to 9.1.1 tells me I don't need it yet 9.1.2 tells me I need an eligable Logic Pro Version was not found in applications.
    All of my files are stored in a separate hard drive with only the actual app having been on my Macbook. Should I just reinstall?

    Hi
    To run Mouitain Lion you need to update Logic.
    For the updaters to work the Logic application must be:
    a) Within the Applications folder, and not in any sub-folder
    b) Named "Logic Pro" with no extra numbers or spaces
    CCT

  • Windows 7 professional backup and restore stop working after installation of acronis true image 2010

    HI,
    windows 7 professional backup and restore stop working after installation of acronis true image 2010. it generates a error code 0x81000019. please help.
    thanks
    Song

    Sankalp,
    I too have the error 0x81000033 when running the full system image backup.  I could not assign a drive letter to my 100mb drive with the Disk Management.  So, I went into the diskpart and ran the following commands:
    diskpart
    list disk
    DISKPART> list par
      Partition ###  Type              Size     Offset
      Partition 1    System             100 MB  1024 KB           ( 78.2 of 96.0MB free )
      Partition 2    Reserved           128 MB   101 MB
      Partition 3    Primary             73 GB   229 MB
      Partition 4    Recovery           423 MB    74 GB
    sel dis 0
    list par
    select partition 1
    assign letter=q
    fsutil usn queryjournal q:
    fsutil usn deletejournal /D q:
    After diskpart, I opened the "My Computer" and see that I have 78.2 of 96.0MB free.  Despite that, I ran these commands on the new q: drive:
    C:\Windows\System32>q:
    Q:\>fsutil usn queryjournal q:
    Error:  The parameter is incorrect.
    The FSUTIL utility requires a local NTFS volume.
    Q:\>fsutil usn deletejournal /D q:
    Error:  The parameter is incorrect.
    The FSUTIL utility requires a local NTFS volume.
    Q:\>
    Any help is appreciated.

  • My Verizon Cloud says "Content is pending for backup" and (Update pending), but it's been doing this for over a day now.  The number of photos hasn't changed and I have 26GB of space.  What's going on?

    My Verizon Cloud says "Content is pending for backup" and (Update pending), but it's been doing this for over a day now.  The number of photos hasn't changed and I have 26GB of space.  What's going on?

        Tinigal2112,
    We want to make sure your photos are backed up successfully! Have you tried to stop the process and start it again? You can stop the process by stopping the Cloud and backup process completely in Settings>Applications>All>Verizon Cloud>Force stop. One it has stopped make sure you care connected to WiFi and try the backup again.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Automated Backup and Backup Jobs

    While I install oracle 11g release 2 the installer asked me :-
    if I want to enable or disable automated backups for my database. if enabled, then the backup jobs uses
    the specified recovery area storage
    Please help me to get knowledge about
    1- the automated backups
    2- the recovery area storage
    Thanks a lot.

    1)If you configure automated backups, oracle will run rman daily backup to backup all datafiles to flash recovery area
    http://docs.oracle.com/html/B14399_01/install_overview.htm
    2)configure flash recovery area using db_recovery_file_dest and db_recovery_file_dest_size.
    Flash recovery area is the area where you can store permanent and transient files (like backups)
    http://docs.oracle.com/cd/B19306_01/backup.102/b14192/setup005.htm

  • Backup and Restore Error 0x81000010 after Windows 7 join member of domain

    I test windows 7 backup and restore working propery afteer I join this computer to member of domain.
    I got error when I try to run backup and restore Plase see picture below.
    Please kindly advise sloution to fixed this problem.

    I ensure that my user have admin right. I also try this solution but not working.
    To troubleshoot the issue, please try the following steps.
    1. Add the standard user to AppLocker.
    Type Secpol.msc in Search box in Start menu> Application Control Policies > AppLocker > Executable Rules > New hash rule forBackup Operators
    to allow them to use sdclt.exe
    2. Tried to add user in the following GPO:
    Computer Configuration>Windows settings>Security settings> Local policies>User rights assignements> Back up files and directories.
    3. Plug an external hard drive and try to back up information to the driver for a test.

  • Lightroom 4 (and update) slow down after editing 2 images

    Imported 74 Nikon RAW images (from D300) into Lightroom 4 (also tried with RC-1) on 2.8ghz Intel iMac with 4gb memory, approx 180GB free on 320GB HD.
    After using the brush on 2nd image the program slows to a crawl. It takes a minute or more to load the next image, a dozen or more seconds for Brush to be ready to use. Running OS-X Lion. Getting spinning wheel constantly, and it gets slower after 2nd image. I'm forced to close the program, wait a bit and restart so I can edit another photo in any reasonable time. Also, if I wait in Lightoom, doing nothing for a minute or more, things will speed up again for another 1 or 2 images (if I'm lucky).  All software and OS is up to date. No other programs running.
    Memory leak or garbage collection problems?
    Same thing happens on my Windows 7 laptop using a new Crucial 120gb SSD.
    Someone else is editing the same images on their 4 year old PC using Lightroom 3.6 and everything is fine. I'm switching back to see if it helps. Will post here with results.
    _Bob

    I can confirm the issue. Using some function (I noticed it on noise reduction too) causes a tremendous slowdown.
    I'm using a i72630QM with 8gb ram. It's fast enough to handle that stuff, at least it was on LR3.
    Edit: just to clarify what I mean with "slowdown": the program is barely reacting anymore, takes several seconds to come back from minimize, pretty much feels like crashing nonstop.
    I can say 99,99% certainty that its not hardware related.

  • Spotlight and Time Machine broken after restore/upgrade

    I've found a few similar threads to this but none of those solutions has worked for me.
    Two things happened at nearly the same time, so I don't exactly know the source of my problem:
    I upgraded my old MacBook Pro (approx. Oct 2010, 2.66GHz I think, 300GB-ish HD) from Lion to Mountain Lion
    The hard drive on my old MacBook Pro developed a terminal fault, so I had to buy a new one (8GB, 750GB HD) and restore a month-old Time Machine backup from my external drive.
    I can't remember whether my last Time Machine backup to my external drive was before or after I upgraded to Mountain Lion.
    Now I'm on OS X 10.8.2 on this new machine and I have two problems that seem to co-exist for a lot of other people too:
    Spotlight won't index: this is f***ing infuriating, I love spotlight and I use it all the time. When I first restored from the TM backup I think the old index restored with the backup as I did get a decent number of search results (both in spotlight and in MS Outlook), but new files didn't seem to get recognised. I tried adding my hard drive to the exclusion list and removing it again in an attempt to get it to rebuild the index, but all that did was wipe the old index without building a new one, so now I get no spotlight results whatsoever. I tried this solution and sadly it hasn't worked either. Basically I can't search for anything. Even applications (which I like to launch from spotlight) don't appear. All I get is "estimating indexing time", and it never gets any further.
    Time Machine won't back up: the first time I tried to backup my new machine it got a few hundred megabytes in before stalling; then a few hundred kilobytes in the next time I tried; and now it just doesn't get anywhere at all. The external drive I'm trying to backup to is recognised fine, I can see all the other files on it, and Time Machine seems to know that it's there, but the backup gets nowhere.
    There are reports of this kinds of crap all over the Apple Support forums, but no definitive answer, especially for 10.8.2.
    I could really do with some help on this. I need a backup before I screw another laptop, and I need spotlight to survive day-to-day life.
    Thanks,
    Craig

    Hi Craig - I had the exact same problem - I'm using an old early 2009 MacBook Pro upgraded to 8 Gb Ram, 1 TB internal Hitachi HD, 10.8.2 - tried the fixes suggested - got it to work with these steps- everybodies mileage is different but hopefully it works for you as well.
    a) I repaired disk permissions with Onyx (free utility)  and then  started  up with Command-R using Disk Utility to repaired/check the Volume (harddisk checked out fine but the volume needed some minor repairs )- Onyx repair disk permission seems to go deeper -had to reinstall some apps - don't know if this solved it-seems to bring it back to the default state - you might get away with doing all from Disk Utility (but starting up with  Command-R)
    b) restart from my internal hd
    c) downloaded the 10.8.2 combo update ( not the incremental shell update or whatever you call it which automatically gets installed with software update - combo update installs everything fresh from the .0 version)
    d) with  Onyx  I deactivated spotlight and erased the spotlight index
    d) restart
    e) started TM backup - prep took pretty long 30 minutes but then 450 GB got backed up in 6 hours to my external HD which is fast enough for me
    f) activated spotlight and 450 Gb were indexed in 9 hours or so
    g) for 2 days everything runs fast and very responsive
    best,
    Franz

  • CPU and GPU slow down after system upgrade

    Ok, I can't find anything similar to the question I have...but this forum goes on forever  
    As my system specs appear below, my machine was running quite comfortably a week ago, with same setup...minus the acrylic case and second 120GB hard drive.
    At that stage I had "nomal" benchmarking scores 3dmark03 - 5850, Aquamark3 41.000, PC mark 2002 - cpu7020 mem8438 hdd1050.
    Life was good and I loved my system
    Then I decided it would be cool to upgrade to an acrylic case (which has better cooling with 3 fans) and a second 120 GB HDD to make a striped raid array.
    My first concern was the raid Array. I was carefull to buy the exact same seagate hard drive, size etc. the original was only a month old anyway. The second was to use the intel southbridge chip for SATA RAID or the Promise controller? After researching these forums I decided to go with the Intel as it has more possible bandwidth and doesn't sit on the PCI bus.
    I got the new case and wearing those stupid white gloves, proceeded to move the components over and trash my "old" metal case.
    The windows NTFS format (full) flew by in 30 seconds and I was really impressed.
    Once windows xp and all it's drivers and updates were installed, incl sound and graphics etc. I did a 3Dmark 2001 test before upgrading to Dx9...what a bad mark! 3Dmark2001SE - 9950 (terrible for this system).
    I thought it was a DX problem...so I installed Dx9
    Then opened that corecenter program (the old one, the one that doesn't crash...)
    and my CPU was about 5c hotter than usual, it was running at 40-42c (I have standard intel cooling fan). It went up to 55 at times when running PC mark 2002.
    This didn't concern me too much a the system was stable at 32-34c and the northbridge read 60c (but we all know that's not true , more like 35ish.
    My PC mark 2002 is now cpu4200 - mem4800 - hdd1800
    (at least the HDD improved!) LOL
    I ran Aquamark3 next...29,900 (ouch!)
    Previously my CPU was 8,700 and GPU was 5300
    now the CPU read 4400 and the GPU 4600
    I don't really notice the speed loss when working, but games and benchmarks tell a different story.
    So, My question: What has happened? Why is my CPU power cut in half? and the graphics card slightly slower? The memory speed stayed the same and the HDD speed improved....not a worthwhile upgrade IMO
    What went wrong?
    Here are my theories.
    1) The CPU and system case is getting too hot
     Does the CPU "throttle" when it overheats? this could be the reason.
    Also both HDD get really hot and the fan in front blows air over them, this hot air could be going over the CPU or GPU. Maybe get 2 HDD coolers?
    should I buy a better CPU cooler like the Thermaltake spark7+ ?
    2) The PSU does not have enough watts
    I couldn't find traces of voltage lack or spikes...but it could still be a problem
    3) The RAID0 array is a strain on the CPU and chipset
      I'm not sure about this.
    My appologies for the lengthy thread, but I wanted to be sure that anyone trying to figure this out had as much info as possible  
    Thanks if u can help me figure this out.

    Quote
    Originally posted by Reaver
    When I originally installed the intel p4 cooler, I used artic silver ceramique paste...and the CPU temp operates at 36-38c with no load.
    Perhaps I should upgrade the overall cooling. Get a Thermaltake copper fan and two HDD coolers.
    Well, your temps sound allright, no need to worry them, if they really operate at that level.
    Quote
    The solution to set the FSB to 201Mhz sounds good. But do I set this in the BIOS or with Corecenter in windoze?
    Propably meant to adust your FSB at BIOS, at least that is what I would suggest.
    Quote
    I will try to re-install the VGA drivers because something strange DID happen when I first installed them. I started with the hercules driver CD, this installed CAT 3.2 drivers. I then upgraded to CAT 3.7 and before it completed I got an error window (send, dont send).
    Remove drivers AND ATI control panel first, and then re-install. Use drivers from ATI site, and rather Catalyst 3.7. I Have had problems with 3.8 Catalysts.
    Quote
    Still wouldn't explain why the CPU seems so crippled. I have managed to get a "normal cpu score of 7000+ in PCmark2002 by shutting down, restarting later and killing every process except explorer.
    Do you have any processes that seem to eat more juice thant hey should?  Arrange your processes by CPU usage and see if there is something strange.
    Quote
    If this cant be fixed I will reinstall over the weekend. Does anyone know of the RAID0 array on the southbridge causing a system slowdown?
    I'm using Intel RAID and it works perfectly, no extra CPU usage is shown and it's pleasantly fast!
    And Install latest Intel INF updates and Application Accelerator from Intel site. That's what I'm using, and works fine.

  • Loss of key clicks and music via speakers after ios5 upgrade

    Have lost key clicks and music via speakers after updating to ios5.  Sounds are there when headphones are plugged in.  Have checked all settings and done hard and soft resets. What to do?

    I've been tracking some issues on the Conexant drivers. Can you send me a DxDiag.txt and your c:\windows\inf\setupapi.dev.log file to "mediaq at Microsoft dot com"?
    Thanks!
    John W [MSFT]

  • Rsyslogd refuses to start after pacman upgrade

    Hello,
    After last pacman upgrade rsyslog refused to start.
    This also caused boot problems - systemd would go into infinite loop trying to start rsyslog and failing miserably.
    I've disabled rsyslog.service from chroot environment and booted from disk - it helped.
    I've also noticed that latest package version (  rsyslog-7.2.6-4-x86_64)  does not ship with /etc/rsyslog.conf, so
    upgrading to it removes this file which is why rsyslog refused to start
    Downgrading, copying file elsewhere and moving it back to /etc/rsyslog.conf is a simple workaround.
    Previous package versions had this file inside ( I checked rsyslog-7.2.4-1 and rsyslog-7.2.6.1, both for x64)
    Hope that helps someone.
    Should I perform anny additional steps to resolve this issue ( e.g open a bug ? )
    Thanks for any help!

    The package was changed with 7.2.6-4 to copy rsyslog-example.conf to /usr/share/doc/rsyslog/ rather than as configuration to /etc.
    Probably because the rsyslog devs apparently changed it in a way that causes the program to instantly go into an infinite loop.
    Since it won't start at all without /etc/rsyslog.conf present, I just copied the default Debian ships 7.2.6 with (available in here). Works properly so far.
    Last edited by misc (2013-03-14 23:16:19)

  • How do I fix aLaCie Backup Drive that runs constantly after Maverick upgrade

    LaCie backup drive for time machine runs constaantly after Maverick upgrade.  This is using resources and slows the processor

    After installing Mavericks on my one year old iMac (loaded) Time Machine failed (Pegasus Promise Thunderbolt 3TB).  I tried unmounting it, didn't work.  Rebooted: Time Machine failed again [Time Machine couldn’t complete the backup to “Time Machine”. Unable to complete backup. An error occurred while creating the backup folder.] was the only message. Had to reboot to get Pegusus accessible again.  Tried re-intalling Maverick (old Microsoft thing... reintall the OS).  Didin't do anything for Time Machine, same failure.  Booted into safe mode: nothing, same probelm.  Repaired permissions: no joy there either.  So, now have no Time Machine backups at all. And Time Machine won't work with the Pegasus. [same error message after 30 min or so every time].  ordinary file saves work fine though.
    Ideas please?

  • Isight and Dock screwed up after Mavericks upgrade

    I upgraded from Mountain Lion to Mavericks on my Mac Book Pro which was bought in April 2012. After the upgrade Safari is totally screwed up. I am just able to open one tab. There is a bunch of blank tabs which I am unable to close. On top of it, the Isight camera stopped working. Dock seem to be very unresponsive. Anyone else facing these problems or is it just me? I reinstalled mavericks twice. Just don't want to do a clean wipe and install.Not sure if that will fix the problem.

    I have a problem with my Isight cam after update too,  not same as yours...Mine is just Really Grainy now .. like an light level issue. was FINE before update...  Now its almost useless. Called apple, they calling tonight to talk it over. Maybe my camera is just going bad..thank God for Apple Care... Sigh  Hope you get answers to your iissue.

  • Help!  Missing pics, notes, and everything in between after iOS7 upgrade

    Last night, I upgraded to iOS7.  Before doing so, I connected my iPhone to my PC and backed up the contents (to the PC).  Once complete, I moved ahead with the upgrade.  Once complete, I think I may have accidentally hit something, causing my phone to be backed up once again, only there was nothing on it after the upgrade to iOS7.  Did this overwrite my original backup?  Clear out my pics, notes, etc.?  Can I retrieve them?  Any help is greatly appreciated.
    Thank you!

    This is my problem I don't have this icon so it is going to be difficult to try the solution ie. general-reset-reset home screen layout

Maybe you are looking for

  • BEx Analyzer with different worksheets

    Hello, I have query with the following query structure in my BEx query designer        Characteristics                                             Keyfigures Project no     Costcenter           Jan Actual   Feb Act   Mar act ...Augplan Decplan I want

  • Amazon Android Appstore refusing Air based Droid apps

    I recently submitted a few apps to the Amazon Android Appstore and am just now recieving refusal emails due to the apps looking for Adobe Air updates on the Android Marketplace. I use FlashBuilder to compile to mobile with no code added to otherwise

  • Change Request Management for Implementation Project

    Hello gurus! I have a problem with execution change request in implementation project. I have created Implementation project and task list for him."Change request management" is active for this project. I can create document Change Request, but I can

  • SAP BW with sapr/3,SAP HR

    I have been ina project with SAP BW ,SAP R/3,SAP HR...I have been isuued some infotypes..I doesnt have strong knowledge of generic extraction...I have to find out which infotypes support STD extractors,which infotypes support customer extractors...Pl

  • The application "Numbers" can't be opened - 1712

    Numbers won't open.  This is the first time I've had this problem.  It's version 3.1 updated in Jan 2014.  Can anyone help?  Thank you Juliet