Using Arch Wiki rsync back up script - Error Code 3

Hi Guys,
I've searched around these forums and the web for people with similar problems without getting a solution.
I took the script provided in this wiki page and directly created a file named arch_backup.sh in my bin directory.
Then I run it in the following manner:
Infernus:discourse(master!*) $ sudo ~/bin/arch_backup.sh /media/Backup/Arch
sending incremental file list
file has vanished: "/proc/10/exe"
file has vanished: "/proc/10/task/10/exe"
ERROR: destination must be a directory when copying more than 1 file
rsync error: errors selecting input/output files, dirs (code 3) at main.c(622) [Receiver=3.1.0]
total time: 0 minutes, 0 seconds
Infernus:discourse(master!*) $
Here are the relevant parts of my mount -l command:
/dev/sdd1 on /media/Backup type ext4 (rw,nosuid,nodev,noexec,relatime,data=ordered)
I get the same error when I run the provided rsync command directly:
rsync -aAXv /* /media/Backup/Arch --exclude /dev/* --exclude /proc/* --exclude /sys/* --exclude /tmp/* --exclude /run/* --exclude /mnt/* --exclude /media/* --exclude /lost+found --exclude /var/lib/pacman/sync/*
I keep getting the same error message over and over again. The destination is a directory and is writable, otherwise the provided backup script would exit with an error message.
Any help?
Last edited by Balaji Sivaraman (2013-12-01 18:05:24)

jasonwryan: I had a go at re-writing the first section to avoid parsing ls output - and that was not too difficult - so the start of the script then becomes:
#!/bin/bash
# Back up stuff to backup disc
USE_AUTO_FS=0
if [ -z "$1" ]; then
USBNAME=/run/media/$USER
DIRCOUNT=$(find $USBNAME/* -maxdepth 0 -type d | wc -l)
if [ "$DIRCOUNT" -gt "1" ]
then echo Found $DIRCOUNT directories in $USBNAME;
echo rerun choosing a specific backup drive as parameter
echo quitting
exit
fi
DIRCOUNT=0
for full_path in "$USBNAME"/*/; do
if ! [ -d "$full_path" ]; then continue; fi
EXT_DRIVE=${full_path#"$USBNAME/"}
EXT_DRIVE=${EXT_DRIVE%/}
DIRCOUNT=$(($DIRCOUNT + 1))
if [ "$DIRCOUNT" -gt "1" ]
then echo Found $DIRCOUNT directories in $USBNAME;
echo rerun choosing a specific backup drive as parameter
echo quitting
exit
fi
echo "$EXT_DRIVE"
done
echo Mounted EXT_DRIVE is $EXT_DRIVE
else
EXT_DRIVE=$1
fi
This is overkill on the check for more than one mounted drive - I know!
However when I looked at using a single rsync command instead of a set in a loop - this is certainly possible but I wanted to have the script output when it started each of the top directories and not progress for every file in the recursive tree - and I could not find a solution for that.  I could get a "total" progress indicator using the new --info=progress2  flag that was implemented in version 3.1.0 of the rsync command but that was not what I wanted. Having a single progress line for each item in the list variable was not something I could find. If it is possible I would love to know how?
Anyway the code for doing this is:
list=( '/etc' '/var' '/boot' '/root' '/opt')
echo Directories to be backed up are ${list[@]}
ToDir="$BAKDIR/$ME_HOST"
TIMER=$(date)
TIMER1=$(date +%s)
echo Started at $TIMER
rsync --info=progress2 --delete -aH --exclude 'lost+found' --exclude '/var/cache/*' "${list[@]}" $ToDir
TIMER=$(date)
TIMER2=$(date +%s)
echo Finished at $TIMER
TDIFF=$((TIMER2-TIMER1))
TDIFFM=$((TDIFF/60))
TDIFFR=$((TDIFF%60))
echo
echo Process time elapsed is $TDIFF seconds = $TDIFFM min $TDIFFR sec
Anyway this seems at least to work whichever option one chooses.  Also the z compression flag is not necessarily faster - for a lot of small files over a gigabit link can be slower so I guess it depends on the details of how the backup is being executed.
Last edited by mcloaked (2013-12-02 21:23:36)

Similar Messages

  • HT4623 iPhone 5, updating using iTunes, iphone could not be updated, error code 3014, iphone is in recovery mode, I have re-installed iTunes twice and each time got the same message

    iPhone 5, updating using iTunes, iphone could not be updated, error code 3014, iphone is in recovery mode, I have re-installed iTunes twice and each time got the same message

    Error 3014
    This error occurs when iTunes can't reach gs.apple.com in a timely fashion. Follow the steps below to contact the iOS software update server gs.apple.com.

  • How use flex sdk 3.5 Action Script-3 code in flash builder 4.5............???

    hiiiiiiiiiiiiiiiiii
    can i use my flax sdk 3.5 action script-3 code into flash builder 4.5 .....if yes so plz give me detail how??..with step....

    Ya i tried by keeping <fx:Declarations> part but still it is throwing error,
    In flex3 we are making a component ex: <mx:canvas> and changeing that component to
    <cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:cairngorm="com.adobe.cairngorm.business.*">
    </cairngorm:ServiceLocator>
    if any one used 4.5 with cairngorm let me know
    thanks

  • Trying to use Airport Extree in Time Capsule nned error code help

    I am a log time apple supporter but I have been messing with this since last night trying to get the @^#&# thing to work. I got conencted erlier to the internet now when i come back from dinner i can;t connect and and i get error code 6765. Earlier i got a message somethinga bout a bios but i did nto write it downa nd now can;t get it to produce it.
    Can;t they ever make anything that works the first time out of box for us older non techy guys.
    HELP
    Dan

    Thank you for your quick answer, smorkerz. However, I did it and it doesn't work.
    I tried to check separately the time capsule and the airport extreme, switching one off when using the other one. The result is that each one works alone but when I use them both, just time capsule appears, works well, and I can't use the airport to print for instance.
    Do you understand anything ?

  • HT201272 I purchased Season 3 of the Walking Dead.  I cannot download the second episode of the season; corrupted file.  I submitted a feedback form, but they do not send a reply.  I tried to use the online help/support, got an error code for that page.

    I just want my content.  I am frustrated at trying to get on-line help.  Either I will not get a reply to my feedback form, or the online support page has an error code, with "please try again later" or "start over".  I have paid for this content, and cannot download their corrupted file.

    Are you in a country where TV shows can be re-downloaded - if you are then have you tried deleting that copy from your iTunes library and re-downloading it via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page on your computer's iTunes ?
    When you say that you used the feedback page, do you mean the feedback page (which you won't get a reply to) or the 'report a problem' link from your purchase history on your account or the contact iTunes Support page ?
    'report a problem' : log into your account on your computer's iTunes via the Store > View Account menu option and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that song and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    contact iTunes Support : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption (if this page doesn't work then have you tried clearing your browsers history/cache and/or tried a different browser ?)

  • Daughter has an iPhone and she can send me a text but when I text her back I get error code 2127

    My daughter has an iPhone and she can send me a text but when I try to text her back I get the error code 2127. Does anyone know what this means? Does this mean my messages to her are being blocked somehow?

    Usually it means you are texting a number which isn't 10 digits in length.  I would recommend that you delete the entry in your Contacts for your daughter, then find the text she sent you and create your new Contact from that. If she is listed in your favorites - delete her from there too, then re-add after a successful hook-up.

  • Calendar back up - script error issue

    hi,
    1st of all let me tell you i am not a programmer. i dont have any kind a knowledge of apple script or automater.
    but when i was serchign backup sollution via apple script, i got this script.
              tell application "Safari" to activate
              tell application "System Events" to tell process "Safari"
                        click menu item "Export Bookmarks…" of menu 1 of menu bar item "File" of menu bar 1
      keystroke "d" using command down
      click button "Save" of window 1
                        if sheet 1 of window 1 exists then click button "Replace" of sheet 1 of window 1
              end tell
              tell application "Contacts"
      activate
      delay 5
      activate
              end tell
              tell application "System Events" to tell process "Contacts"
                        click menu item "Contacts Archive…" of menu "Export…" of menu item "Export…" of menu "File" of menu bar item "File" of menu bar 1
      keystroke "d" using {command down}
                        keystroke "Contacts Archive"
      keystroke return
                        if sheet 1 of sheet 1 of window 1 exists then keystroke space
              end tell
              tell application "Calendar"
      activate
      delay 5
      activate
              end tell
              tell application "System Events" to tell process "Calendar"
                        click menu item "Calendar Archive…" of menu "Export" of menu item "Export" of menu "File" of menu bar item "File" of menu bar 1
      keystroke "d" using {command down}
                        keystroke "Calendar Archive"
      keystroke return
                        if sheet 1 of sheet 1 of window 1 exists then keystroke space
              end tell
    but when this script reaches here.......
    tell application "Calendar"
      activate
      delay 5
      activate
              end tell
              tell application "System Events" to tell process "Calendar"
                        click menu item "Calendar Archive…" of menu "Export" of menu item "Export" of menu "File" of menu bar item "File" of menu bar 1
      keystroke "d" using {command down}
                        keystroke "Calendar Archive"
      keystroke return
                        if sheet 1 of sheet 1 of window 1 exists then keystroke space
              end tell
    it gives error.
    now can any one help me how to solve this issue.
    in this script any scripting modification needed??

    Hi,
    would have been best to describe this error closer
    Running the script in AppleScript Editor will highlight the relevant line ...
    So i guess the error occurs when it reaches the if-statement. Put it in a try block:
    try
    if sheet 1 of sheet 1 of window 1 exists then keystroke space
    end try
    and maybe do the same with the corresponding line in the contacts-block....
    A GUI-Script like this one is always a little shaky since you need to pause your activities while running it.
    I wanted to note that just because i might have a better solution for you: an AppleScript-application that backups Contacts and Calendar without using GUI-Scripting. You will find it here (and do be surprised about my spelling as i am not an English native speaker)
    Greetings

  • Cant back up Mac - error code 6584

    Hi Ive recently configured and set up my TC. Macbook configured wirelessly no probs.
    However when I try to open Time machine after a few moments the above error message
    appears and I have to end it. INstalled latest TC firmware.
    Any help much appreciated.
    Thanks
    Rob

    Hi LP,
    Turn off wireless so there is only ethernet connection. - OK will try that in a mo..
    Does the TC hard disk appear in Finder?  YES
    If so mount it and then see if TM can find it. Even if it has issues once finder can access the drive it is usually ok.  Sorry, what do you mean Mount it ?
    Is that how it should appear in Finder ?

  • Unresponsive Script errors popups in Firefox 14.01

    Since upgrading from Firefox 13.01 to 14.01, Firefox is taking a long time to launch and I am receiving multiple unresonsive script error popups when it tries to launch. I have the same extensions installed that I had in 13.01 and all are compatible with 14.01. Again this issue ONLY started when upgrading to 14.01. I have tried to determine what extension is the problem and turn it off, however when I launch Firefox again, another unresonsive script error popup occurs with a different extension. I'll remove that one and it popups again about a another different one. This is crazy! I have even tried a complete clean install, with no luck. What is the problem?

    I use Roboform and the first unresponsive script error popup is about Roboform. Their tech support just emailed me about an hour ago and ask if I had Trusteer Rapport installed on my system (https://www.trusteer.com/product/trusteer-rapport) and I said yes. They instructed me to Stop Rapport, which is a setting Rapport has, and relaunch Firefox 14.01 and see if the unresponsive script error popup returns and it did not! They then told me to do a complete uninstall (all user settings) and re-download Trusteer Rapport from their website and install again and see if the unresponsive script error popup returns. They said it should not. However after doing a clean reinstall of Trusteer Rapport, however the popups came back :(
    I emailed Trusteer about this issue and I am waiting for a response. Roboform tech support responded after I told them it did not work by saying only that they are aware of the issue with Trusteer Rapport with nothing more said in their email.
    I only know that Trusteer Rapport is a MUST HAVE security software and I have had it for years and it has never caused problems and that the version of Roboform I have is current and was the SAME version that was installed when using Firefox 13.01 and Roboform did not cause these popups in 13.01
    So, this evening, I did another clean uninstall of Trusteer Rapport AND a clean uninstall of Roboform and relaunched Firefox 14.01 and the only unresponsive script error popups where from another add-on extension called WorldIP. No other popups occurred.
    With that being said, I can say that Firefox 14.01 is causing issues and this needs to be fixed asap.
    Thoughts?

  • I keep on getting this unresponsive script error "Script: chrome://greasemonkey/content/prefmanager.js:55" . I have tried to update everything and it still showing that error and then crashing. What can I do?

    I am running Facebook and leaving it on..when I come back to it or sometimes when i am using it i get this Unresponsive Script Error - Script: chrome://greasemonkey/content/prefmanager.js:55. If i click continue or stop it will go away but many times the page is frozen so i have to restart Firefox. I am not using Chrome so i am surprised about that part of the error. I have read the other posting and have tried to change the time under config......can't remember the rest and it has not worked. Please advise what else i can do.

    In Firefox the use of the term chrome refers to the user interface and other elements that are not part of the web pages.
    See https://developer.mozilla.org/en/Chrome
    Your problems seems to be caused by the GreaseMonkey extension.<br />
    See [[Troubleshooting extensions and themes]]

  • 02/18/13 Flash Player Update Has Scripting Errors

    Win XP
    IE 8
    11.6.602.168
    Attempted to install the Flash Player update that apparently released this morning and my install was interrupted by the following scripting error.
    Line 1
    Char 13128
    'ActionGtbCheck' is undefined
    Code 0
    URL" http://127.0.0.1:2318/app/_js/adobe.js
    Do you want to continue running scripts on this page?
    I used the link to the install that the Update Notifier gave me. It appears that I actually have a version installed already that is for IE9 not IE8. Not sure why Adobe would have had me upgrade to an incompatible version or why the Update Notifier is telling me to patch if I already have the most recent version installed Either way, this needs to be fixed. My scripting options are all checked as directed in your tutorial. My Java is also patched and active.
    Downloads should be quick and pain free. All I should have to do is click Install and it should happen. Whatever is going on here needs to be fixed on YOUR end. Customer service chat told me that they are unable to help and suggested I purchase a $39 phone call in order to notify Adobe about the problems with their install. LOLOLOL

    If Adobe is one of the few non-public sector companies left in the US who still observe President's Day by closing their doors and giving staff a holiday then kudo's to them! If this was the case, then might I suggest that releasing a patch the day before the holiday closure might not have been the wisest course of action?
    Pat, I could begin with the on-line chat individual who tried to sell me troubleshooting for a properly functioning system when I was trying to report an issue with the patcher and perhaps also receive some acknowledgement that the issue was known (or not) and being addressed. But let's not go there. I will suggest, that if you believe ignoring those who have questions about your product for an extended length of time is an acceptable way to engage in business, then perhaps you have a bright and promising future at the local mall. End of that topic.
    Chris, I don't understand what you mean by "appropriate stand alone Windows installers". I clicked the link embedded in the update notification and it took me directly to the installer that I attempted to use and that subsequently returned the scripting error. So how could that not be appropriate? But comparing the version the site says is already on my system to the version numbers given on the patch it appears that I already have the most recent version installed.
    If this is the case then perhaps the error was actually in the program that checks for the patches thinking I even needed a patch? Also when I checked the system specs for the download I don't think it listed it as being appropriate for IE 8, which is the most current version available for XP, so perhaps that's causing errors? So I'm confused as to what's going on.
    At this point I'm not certain I need to do anything other than wait for Adobe developers to troubleshoot the patcher? The version of Flash I have installed, though it has the memory issues that have been the topic on this thread for months (http://forums.adobe.com/message/5089040#5089040), seems to be performing the same as it usually does. It still takes 15 minutes or longer to load the thumbnails on the Netflix homepage and Hulu, but I can at least use the Hulu player if I'm willing to ignore the flickering and occasional freezing. Silverlight, as always, runs beautifully.
    Of more concern are potential security loopholes that might still be unplugged if my version isn't correctly updated. I was actually hacked just viewing a fan site and had a game account stolen about a year and a half ago June, when a newly released Flash version left out a security correction included in the older code.
    Thanks to both of you for taking the time to respond to my posts. I realize I was not at my sweetest and most adorable while posting. 

  • On Adobe Acrobat Pro X "I received error code 2148073483 when trying to sign my documents.  I am using Windows 8.2"

    Using Adobe Acrobat Pro X I received error code 2148073483 when trying to sign my documents.  I am using Windows 8.2.

    Please read, and reply back here with information https://forums.adobe.com/thread/1499014
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Trying to use Buttons and keep getting an error code

    I am trying to use buttons and I keep getting the error code ReferenceError: Error #1074: Illegal write to read-only property graphics on flash.display.MovieClip.
    There is one button that doesnt appear when I view it live/in browser/ in flash professional
    I have created this button the SAME way, about 36 times, as the other buttons that work fine. What am I doing wrong?
    PLEASE HELP ASAP...

    The error appears to involve trying to assign a value to the graphics property of a MovieClip.  Do you have code that uses something.graphics =

  • Using error codes.txt and error rings don't allow parameter inputs like custom error rings?

    The error ring is very useful, especially with its parameterized inputs you can specific with %s, %f and %d parameters.  I'd like to do the same thing in my fixed error codes using the error ring so that I can localize them into mulitple languages, but it seems that LabVIEW error codes from project text files never detect or support the parameter inputs, you get a error ring, but no input parameters.  If you use the same string in a customer error code, it gives you the parameter input but then its hardcoded and you can't localize it.  What gives?
    Is there some other way to configure the error rings to use a project file for the error codes but still support the parameter inputs?
    Solved!
    Go to Solution.

    Hi Mike_King
    Here is a VI snippet that I created with two different approaches, in the first one I used the format into string, the second one the function search and replace.
    Here are some links with information about the functions that I used.
    Format Into String Function - LabVIEW 2011 Help
    Search and Replace String Function - LabVIEW 2011 Help
    Regards
    Esteban R.
    Attachments:
    Generate error code.png ‏34 KB

  • Java - Axis2: How to get an error code / error message from the Javascript via SOAP

    Hi
    In our Java applicsation we call a Javascript in a Indesign CS Server using the following code:
    --- SNIP BEGIN ---
    // calls the remote service on the indesign server
    try {
    // create service
    ServiceStub oIndsgnSrvStub = new
    ServiceStub(sIndesignServer);
    // create service parameter
    ServiceStub.RunScriptParameters
    oIndsgnSrvRSParams = new ServiceStub.RunScriptParameters();
    // create arguments with source- and target-file for parameter
    ServiceStub.IDSPScriptArg[] oIndsgnSrvSArgs = new ServiceStub.IDSPScriptArg[2];
    oIndsgnSrvSArgs[0] = new
    ServiceStub.IDSPScriptArg();
    oIndsgnSrvSArgs[0].setName("xml-input");
    oIndsgnSrvSArgs[0].setValue(sSourceFile);
    oIndsgnSrvSArgs[1] = new
    ServiceStub.IDSPScriptArg();
    oIndsgnSrvSArgs[1].setName("output-file");
    oIndsgnSrvSArgs[1].setValue(sTargetFile);
    // define service parameter
    oIndsgnSrvRSParams.setScriptArgs(oIndsgnSrvSArgs);
    oIndsgnSrvRSParams.setScriptFile(sScriptFile);
    oIndsgnSrvRSParams.setScriptLanguage("javascript");
    oIndsgnSrvRSParams.setScriptText("");
    // create runscript
    ServiceStub.RunScript oIndsgnSrvRS = new ServiceStub.RunScript();
    // set parameter
    oIndsgnSrvRS.setRunScriptParameters(oIndsgnSrvRSParams);
    //$$$ there should be an answer returned by the InddSrvr
    // execute SOAP call
    ServiceStub.RunScriptResult oIndsgnSrvRes = oIndsgnSrvStub.RunScript(oIndsgnSrvRS);
    if(oIndsgnSrvRes.getErrorNumber() == 0) {
    oServerProdJob.setProdState(CBP_Constant.REMOTEPRODUCTIONSTATE_SUCCESS);
    bOK = true;
    } else {
    oServerProdJob.setProdState(CBP_Constant.REMOTEPRODUCTIONSTATE_FAILURE);
    bOK = false;
    //$$$ should be set, if there is something returned by inddsrvr
    //oServerProdJob.setErrorMsg(sErrorMsg);
    } catch(Exception e) {
    sError += e.getMessage() + "\n";
    bOK = false;
    --- SNIP END -----
    The problem is that we don't get the error code and/or the error message from the Javascript in oIndsgnSrvRes. The error code is always 0 if I set an Integer value as return in the Javascript. If I set a String, there is an Exception in the Java application.
    Here is the Java script we use:
    --- SNIP BEGIN ---
    main();
    main()
    var sError = "";
    var sXMLInput = "";
    var sLayoutPath = "";
    // get the SDKCodeSnippetRunner object
    var cbpAdapter = app.cbpCbpadapterObject
    if (cbpAdapter) {
    sXMLInput=app.scriptArgs.get("xml-input");
    sLayoutOutputFile=app.scriptArgs.get("output-file");
    sError = cbpAdapter.doProcess(sXMLInput, sLayoutOutputFile);
    return sError; // This give an Exception; if I return an Integer the ScriptResult is always 0
    --- SNIP END -----
    If I try this with the test application from Adobe I get the error code correctly. But in the Java application, using SOAP, I can't get the error code.
    What could be wrong?
    Any ideas?
    Thanks a lot for the support.
    Kind regards
    Hans

    user11340104 wrote:
    Hello -
    i am calling sqlplus from a bash shell script. If the sql statement generates an error, how can I return that error code (unsuccessful) back to the bash shell?
    Well, let google be your friend,
    http://www.google.co.in/search?rlz=1C1GGLS_enIN327IN327&sourceid=chrome&ie=UTF-8&q=sqlplus+error+codes
    There are many threads I guess talking about the same issue.
    HTH
    Aman....

Maybe you are looking for