Packup - a simple backup/restore/migration script for Pacman

I have seen numerous posts on the forums asking for an easy way to backup and restore installed software for purposes of backup, migration or simply for convenience. Packup attempts to fill this void. Simply put, Packup is an ncurses wrapper for Pacman which provides a simple backup/restore/migration system for Arch. Don't believe me? Try it for yourself!

Mimi wrote:
Ghost1227 wrote:by default it should be $8 not $9... I'd love to know why yours responds differently.
┌─[~]
└─╼ ls -Bl packup-*
-rw-r--r-- 1 julia users 2633 2. Jan 18:22 packup-complete-20090102-1821
┌─[~]
└─╼ ls -Bl packup-* | egrep -v '^d' | awk '{ print $8 }'
18:22
Maybe the problem is a different date format (de_DE.utf8).
┌─[~]
└─╼ ls -Bl --time-style=iso packup-* | egrep -v '^d' | awk '{ print $8 }'
packup-complete-20090102-1821
Good point - added --time-style to the script, should fix that problem...
Mimi wrote:
If i select "Run Yaourt" the program exits, i don't know, maybe the exit status of the if condition (if [ $? = 0 ]) overrides the selection?
┌─[~]
└─╼ if [ $? = 1 ]; then echo abcdef; elif [ $? = 1 ]; then echo fedcba; fi
fedcba
Or is it just me?
I think you miscopied something there...
if [ $? = 1 ]; ... elif [ $? = 1 ]; ...
it's kinda redundant... shouldn't one of those be =0? or =3? i'm not even sure which function you're referencing.

Similar Messages

  • SQL migration scripts for MS SQL and Oracle when leaving Pointbase

    We have created a project that has some data in pointbase that is Portal related
    and need to migrate that information to MS SQL. Has anyone written or know of
    migration scripts that would move the data? Thanks in advance.
    Sincerely,
    Eric Ballou

    Here is a progression of the steps I'm taking in picture:
    Start
    http://img136.imageshack.us/my.php?image=oracle1ry9.jpg
    http://img504.imageshack.us/my.php?image=oracle2xt5.jpg
    http://img401.imageshack.us/my.php?image=oracle3id0.jpg
    http://img185.imageshack.us/my.php?image=oracle4pp7.jpg
    http://img76.imageshack.us/my.php?image=oracle5vi1.jpg
    End
    http://img73.imageshack.us/my.php?image=oracle6jl5.jpg
    Message was edited by:
    Cybercat

  • E17 SVN Builder, a new script for pacman to keep your E17 up to date!

    I created a script called E17 SVN Builder because of what it does: create packages of E17 direct from SVN using the same PKGBUILDs as the Arch snapshots do. It came around because I was bitten by the Settings panel bug, which was fixed in upstream a few days after the SVN snapshot was taken. I wanted an up to date E17 install, so I created this script. Do NOT use it if you want your E17 install to be stable(r?)!
    I just thought I would share this script since it works for me. Perhaps people could help me improve it?
    Anyway, the dependancies right now are:
    yaourt-git (I need it to fetch the PKGBUILDs for the images from CVS)
    svn (to fetch the E17 code)
    TODO:
    - I need to get rid of the dependancy on yaourt-git by extracting the code for fetching the PKGBUILDs with it.
    - I want to be able to use flags with this.
    License: GPLv3
    Version: 0.2
    #!/bin/sh
    # * E17-svn-builder *
    # * A script to build E17 directly from SVN *
    # * By smartboyathome *
    VERSION=0.2
    usage(){
    echo 'E17 SVN Builder'
    echo 'This is version '$VERSION
    echo 'For now, this is a very simple script. It will fetch and build the PKGBUILDs for you. It is recommend you create a new directory to run this in, as it will pollute a directory with tons of files and folders.'
    echo '-h, --help; Show this message.'
    while [ "$#" -ne "0" ]; do
    case $1 in
    --help)
    usage
    exit 0
    -h)
    usage
    exit 0
    esac
    done
    buildpkg(){
    echo 'Building '$_E17PKG'...'
    # Check if the package directory exists, and if not, create it.
    if [ -d $_E17PKG ]; then
    cd $_E17PKG
    else
    mkdir $_E17PKG
    cd $_E17PKG
    fi
    # Check if the PKGBUILD exists, and if not, get it.
    if [ -d PKGBUILD ]; then
    yaourt -G $_E17PKG
    else
    mv PKGBUILD PKGBUILD.old
    yaourt -G $_E17PKG
    mv PKGBUILD PKGBUILD.new | mv PKGBUILD.old PKGBUILD
    cmp -s PKGBUILD PKGBUILD.new || mv PKGBUILD.new PKGBUILD
    fi
    makepkg PKGBUILD
    mv *.pkg.tar.gz ../
    cd ../
    # Make sure there aren't any left over environment variables from a previous run or program. This keeps things clean. :)
    unset _EXTRA
    unset _E17PKG
    echo 'Would you like to build the e17-extra-svn packages as well? (y/n)'
    read _EXTRA
    # Remove all packages
    rm *.pkg.tar.gz
    echo 'Beginning to build e17-svn packages...'
    #--- Begin building eina-svn ---
    _E17PKG=eina-svn
    buildpkg
    #--- Begin building eet-svn ---
    _E17PKG=eet-svn
    buildpkg
    #--- Begin building evas-svn ---
    _E17PKG=evas-svn
    buildpkg
    #--- Begin building ecore-svn ---
    _E17PKG=ecore-svn
    buildpkg
    #--- Begin building embryo-svn ---
    _E17PKG=embryo-svn
    buildpkg
    #--- Begin building edje-svn ---
    _E17PKG=edje-svn
    buildpkg
    #--- Begin building e_dbus-svn ---
    _E17PKG=e_dbus-svn
    buildpkg
    #--- Begin building efreet-svn ---
    _E17PKG=efreet-svn
    buildpkg
    #--- Begin building e-svn ---
    _E17PKG=e-svn
    buildpkg
    echo 'Finished building e17-svn packages!'
    if [ $EXTRA="y" ]; then
    echo 'Beginning to build e17-extra-svn packages...'
    #--- Begin building exml-svn ---
    _E17PKG=exml-svn
    buildpkg
    #--- Begin building emprint-svn ---
    _E17PKG=emprint-svn
    buildpkg
    #--- Begin building engrave-svn ---
    _E17PKG=engrave-svn
    buildpkg
    #--- Begin building epsilon-svn ---
    _E17PKG=epsilon-svn
    buildpkg
    #--- Begin building esmart-svn ---
    _E17PKG=esmart-svn
    buildpkg
    #--- Begin building etk-svn ---
    _E17PKG=etk-svn
    buildpkg
    #--- Begin building ewl-svn ---
    _E17PKG=ewl-svn
    buildpkg
    #--- Begin building e-modules-extra-svn ---
    _E17PKG=e-modules-extra-svn
    buildpkg
    #--- Begin building elitaire-svn ---
    _E17PKG=elitaire-svn
    buildpkg
    #--- Begin building entrance-svn ---
    _E17PKG=entrance-svn
    buildpkg
    #--- Begin building exhibit-svn ---
    _E17PKG=exhibit-svn
    buildpkg
    echo 'Finished building e17-extra-svn packages!'
    fi
    echo ''
    echo 'All package building is complete!'
    echo 'It is recommended you restart E17 after installing these packages.'
    echo 'To do this, go to menu > Enlightenment > Restart;'
    echo 'If you cant, then issue this command to restart it:'
    echo 'enlightenment_remote -restart'
    echo ''
    echo 'Have a nice day!'
    # Unsetting our variables so that we aren't messing with anything else. Also keeps things clean. :)
    unset _E17PKG
    unset _EXTRA
    exit 0
    Last edited by smartboyathome (2008-12-21 21:10:47)

    UPDATE! This package has had a couple changes:
    - Repetitive stuff was condensed into one piece of code. Now, its much easier to read.
    - I implemented extra differently. Instead of using a flag (which for some reason always sent me into a loop, I need more practice with scripting ), I just ask the person running the script whether they want to build extra as well as the core e17-svn stuff. Now it doesn't build them all automatically.

  • [solved] Perl script for pacman updates in Conky

    Hi
    I've been using this script in Perl Conky to check on updates. It works well.
    It's not mine - I got it here;
    http://bbs.archlinux.org/viewtopic.php?id=57291
    #!/usr/bin/perl
    ## script by Xyne
    ## http://bbs.archlinux.org/viewtopic.php?id=57291
    use strict;
    use warnings;
    my $n = (`pacman -Qu | wc -l`);
    chomp ($n);
    if ($n == 0)
    print "System up to date"
    elsif($n == 1)
    print "1 new package"
    else
    print "$n new packages (inc. IgnorePkg) "
    I have some packages listed in IgnorePkg in pacman.conf - is there a way to exclude them from the packages counted in $n?
    I thought something like this would help but I don't see how to take only part of a line from IgnorePkg
    http://www.perlfect.com/articles/perlfile.shtml
    Thanks for any help
    EDIT I added a --ignore clause to the pacman query. Seems to have worked. Sorry to waste your time.
    Last edited by Bazzaah (2012-07-04 09:25:46)

    bump...
    Edit: Finally figured it out. My router assigns IP adresses dynamically on each reboot. When my IP adress changed from 192.169.1.2 to 192.168.1.3 the hellaconk script got all confused. Ahh...
    Last edited by Perre (2009-03-12 18:59:40)

  • System Copy/ Oracle Backup/Restore as part of migrating from 32 to 64-bit

    Source system (I386): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000, Oracle 10.2.0.4, non-unicode
    Target system (x86-64/AMD64): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000 Oracle 10.2.0.4, non-unicode
    Am using method System Copy/ Oracle Backup/Restore to migrate from 32 to 64 bit (HOM System Copy).
    Actions on source system:
    a) Upgrade from 9.2.0.7 to Oracle 10.2.0.4
    b) Used ora_br_copy.bat to generate CONTROL.SQL and init<sid>.ora
    c) Switched logfiles
    d) Performed offline backup
    Actions on target system:
    a) Installed Oracle 10.2.0.1 and patched it to 10.2.0.4
    b) Used CD 51033746 "6.20/6.40 based products Installation Master (Edition May 2008)" to install the CI
    c) Started installation of the DB instance selecting System Copy/ Oracle Backup/Restore (same <SID> for source and target systems)
    Relevant input parameters used:
    Database schema: SAPR3
    Database character set: US7ASCII
    d) When SAPINST stopped to allow for restoring of datafiles, logs and init<sid.ora>:
    - copied datafiles and logs to the usual place
    - copied CONTROL.SQL (edited to include utilrp.sql and utlrp.sql for the migration from 32 to 64) to the DB-instance intallation . directory.
    - copied generated init<SID>.ora to the <ORACLE_HOME>\database
    e) Resumed SAPINST.
    David Byrne in a previous post suggested: "check your oracle alert file in case there are errors there you may need to update the word size for the 64bit install. Errors like this in the oracle alert file would suggest that.,
    ORA-12012
    ORA-06544: PL/SQL: internal error, arguments: [ORA-06544: PL/SQL: internal error, arguments: 56319], [, ], [, ], [, ], [
    ORA-06553"
    Well, I am getting ORA-06553: PLS-801: internal error [56319] but then my edited CONTROL.SQL (which is mainly a CREATE CONTROLFILE as it would be obtained with a ...BACKUP CONTROLFILE TO TRACE) includes at the end this:
    shutdown immediate
    startup upgrade
    spool utlirp.log
    @?/rdbms/admin/utlirp.sql
    spool off
    Shutdown immediate
    Startup
    Spool utlrp.log
    @?/rdbms/admin/utlrp.sql
    Spool off
    exit
    which is supposed to do just that... (I think)
    Help, anyone?

    > Trying to cheer me up, are you?
    No
    > It is NOT free that reorganization! Quite expensive, actually, paid for in time! But you're right... the database needed a reorg anyway :-\
    True, not "free" - it takes time but the data will be nicely aligned then
    > And why would I have to reconfigure all those 10.2 features? Everything's either in the database or init<sid>.ora, ain't it? And my database is a pretty 10.2.0.4 with all those nice features already activated...
    No - not really auotmatically if you upgraded from 9.2 And "init<SID>.ora" is past, you nowadays use "spfile" If, of course, e. g. Automatic Undo was activated in 9.2 then it's there of course in 10.2 too.
    > One sticky point... I haven't really read the r3load procedure yet and I will before I import, but... I would say I don't have to do anything about the 32->64 bit, right? I mean, it should behave properly while reloading on 64-bit...
    The exported content is about 10 % of the size of the system, it's database and OS independent so yes, you can import it nicely on 32bit. Another tip: make sure you don't just use the default configurations for R3load, it will take a HUGE amount of time. Use the package splitter (builtin-in in sapinst) so you get a much higher parallelism when importing.
    Markus

  • Creating SQL-Loader script for more than one table at a time

    Hi,
    I am using OMWB 2.0.2.0.0 with Oracle 8.1.7 and Sybase 11.9.
    It looks like I can create SQL-Loader scripts for all the tables
    or for one table at a time. If I want to create SQL-Loader
    scripts for 5-6 tables, I have to either create script for all
    the tables and then delete the unwanted tables or create the
    scripts for one table at a time and then merge them.
    Is there a simple way to create migration scripts for more than
    one but not all tables at a time?
    Thanks,
    Prashant Rane

    No there is no multi-select for creating SQL-Loader scripts.
    You can either create them separately or create them all and
    then discard the one you do not need.

  • What about a backup/restore feature?!?!?!

    Isn´t it weird that by 2008 Apple still hasn´t added a working, comprehensive backup/restore/migrate feature in Mail? It feels like NOTHING has happened for 10yrs...
    There are few things that are as important to most people as their mail-correspondance.
    What´s up Apple!?!

    Muuseec's profile says he is using Tiger (so why posted on this forum I'm not sure). Upgrading to Leopard and using Time Machine could well be the answer.

  • Package manager & restore batch scripts

    Hi,
    Does anyone know where I can find any documentation on Package Manager and restore batch scripts for EPM version 11.1.2.1? I'm interested in ways to restore planning applications.
    Thanks in advance!

    You could have a look at the backup and recovery guide - http://download.oracle.com/docs/cd/E17236_01/epm.1112/epm_backup_recovery_11121/frameset.htm?launch.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Scripting for different numbers of table rows in cs3

    As always thank you for the help.
    My question: is there a simple newbie way to script for stroke placements when the numbers of rows in the category between the stroke will vary. I have not even attempted to script this style, as frankly I don't know where to start, but here is an explanation of what I need:
    The table foodstuff contains:
    animal, vegetable, fruit
    Under animal there is:
    beef, lamb, pork, poultry
    Under vegetable there is:
    potato, pepper, onion
    Under fruit there is:
    orange
    If wanted a line under each category, ie after poultry, after onion, and after orange how would I go about it.
    Thank you to all who have helped me so far, either by reading answers to other people's queries, or by responding directly to my own

    Interesting ... I don't think there is a newbie-level answer to this challenge. It comes down to finding the first (left-to-right) cell that contains text, and adding a line on top of it all the way to the last cell in that row.
    Here's a first attempt:
    table = app.selection[0];
    if (table.hasOwnProperty("baseline"))
    table = table.parent;
    if (table instanceof Cell)
    table = table.parent;
    if (table instanceof Column)
    table = table.parent;
    if (table instanceof Row)
    table = table.parent;
    if (table instanceof Table)
    table.cells.everyItem().properties = {topEdgeStrokeWeight:0, bottomEdgeStrokeWeight:0, leftEdgeStrokeWeight:0, rightEdgeStrokeWeight:0};
    table.rows.lastItem().bottomEdgeStrokeWeight = 1;
    for (r=0; r<table.rows.length; r++)
      for (c=0; c<table.rows[r].cells.length; c++)
       if (table.rows[r].cells[c].contents)
        for (; c<table.rows[r].cells.length; c++)
         table.rows[r].cells[c].topEdgeStrokeWeight = 1;
        break;
    } else
    alert ("You were supposed to be somewhere inside a Table");

  • XI 3.0 Backup/restore

    Hello All,
    Is there any thing else we need to do for XI 3.0 server Backup, apart from the norml procedure of an ABAP only system backup. SLD is in Our Xi server Only.I know that usr/sap/sid file system backup required .But need to know is there any specfic directory that need to backup specifically for XI  to have consistent backup?
    Thanks
    hany

    Hey Hany,
    Check out the link.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/e6/e8f4167f79414c883ed37464773824/frameset.htm">Backup/Restore and Recovery for SAP XI</a>
    *Reward points if helpful*
    Regards,
    Sushil.

  • AutoText backup & restore

    Didn't find a solution reading old threads on this...
    I got a replacement phone, same model & OS version, and could not transfer the autotext word substitutions, even using the latest Desktop Software.
    It seemed to successfully back up the database, the backup shows 3 "word substitition" databases and 1 "word substitution version" database, but when trying a restore to the replacement phone, it says they didn't transfer.
    I've already copied everything over manually, but what a pain, shouldn't this be able to be exported and imported?  I've got a lot of  shortcuts that generate customer service responses, and really need to be able to backup & restore those.
    For now I've cut-and-pasted them all into a memo, which does get backed up, but that's a lot of manual cut-and-paste work to recreate them all.
    Please RIM, if the databases can't transfer, then make a way to export to a file and import on the other phone.  There's also no apparent way to separate our own additions to what was built-in, which makes it harder.
    thanks

    I was able to find a fix for this.
    We are in an enterprise environment so encountered the problem
    Issue: could not transfer autotext from bold 9700 to new bold 9900 Word Substitution
    Installed latest version of BB Desktop Manager
    Backup old device & disconnect it and put it away
    On new device go into 
    Options / Advanced System Settings / Service Book
    Delete Desktop [SYNC] (dont worry you can undelete it later)
    Connect new device to Desktop Manager
    Choose Restore
    Pick the backup you just made of your old device
    Choose Select device data and settings
    Choose AutoText (and/or others)
    Click Restore
    Disconnect Deviice
    On new device go into 
    Options / Advanced System Settings / Service Book
    Press Menu Button, and Choose Undelete
    Thanks to  Michele for the need, Brian for helping out and to RIM for providing solution on support call.

  • PeopleSoft - Backup and Restore scripts for PeopleSoft implementation using MS-SQL 2012?

    I am working for a county government as a consultant for PeopleSoft using SQL Server. When they restore a DEV instance from PROD, they have to manually stop the web server, app server and batch server, then they do the restore. Afterward they have to change
    all references to PROD in the cloned DEV instance. Everything is done manually and takes a couple of hours.
    Can anyone point me to scripts for PeopleSoft restores that automate bringing down/up the web, app and batch servers and all the other tasks so they don't have to be done manually?
    Life is hard, but it's harder when you're stupid! John 'Duke' Wayne

    This question should be posted on PeopleSoft support forum. That being said, a quick search on the internet will provide helpful links like below: http://www.erpassociates.com/peoplesoft-corner-wiki/peoplesoft-administration/cloning-a-peoplesoft-database.html
    Satish Kartan www.sqlfood.com

  • Shell script for DB backup

    HI,
    i have written some java code Database backup but there are some problems with that so now i need to write shell script for db backup.
    what i was doing in java code i was running command like that
    /usr/local/bin/tar cvzf /export/home/monitor/FILE_20091005.tar.gz FILES/*20091005.*which compress the all *20091005* files (myisam table files)
    but after compression file doesn't extract
    so i have to write shell script for that ..... can any body guide me how can i write that kind of script and put it in cron job.
    thanks

    soundar wrote:
    Hi all,
    I have migrated database from 8i to 10gr2.For Backup in 8i, we used a RMAN shell script (scheduled uding cron tab) to backup the database to Tape.(VERITAS BACKUP).
    I am new to 10G.I checked out the options to backup the database using Oracle Enterprise manager DB console.
    http://www.oracle.com/technology/obe/10gr2_db_single/ha/rman/rman_otn.htm#t1d
    I am planning to take a test backup using the steps mentioned inthe above url.Could any one suggest whcih is the best option for database backup,eiether to use Oracle Enterprise manager DB console or thru RMAN shell script for backup..?
    Edited by: soundar on Mar 9, 2010 10:53 PMDear soudar
    I woudn't suggest you to work with EM if you want to be a professional DBA. Start learning RMAN and use CLI instead of GUI
    Those who live by the GUI, die by the GUI

  • Backup/Restore for my demo database

    Howdy all. I am running Oracle 10g Standard Edition on Windows 2K Server. I have the following situation ...
    I would like to make a standard demo database for my company. This database would be put on several machines and used by sales people to demo our software to possible customers. I need to be able to restore this database on a machine with Oracle 10g installed and then run our software on it.
    I can make the database and run our software on it just fine on my machine. I am, however running into problems when trying to learn how Oracle and RMAN work with backups and restoring those backups. I am coming from the MSSQL2K environment where backup/restore is fairly simple and straightforward.
    Will somebody please give me a basic idea of what I need to do in order to take the database on my machine and back it up and then restore it on another machine. I don't want to have the restore depend on a given file/directory structure. Our software depends on two tablespaces in the Oracle database. So, if it is easier to somehow backup the two tablespaces and restore them than it is to backup the entire database and restore it - then that is great. I will do it that way.
    I am basically looking for the simplest approach for restoring this demo database wherever I want to quickly. Any help would be greatly appreciated.
    wally

    Jeffrey, here's what I use to do this, I have a production database that on occassion I need to make a copy of to perform some testing on, so I just use this to create an "auxiliary" database using the RMAN backups from the production database. I thought in 10g there was a database clone function, I'll have to look that up and get back to you, anyway, here's the instructions I use.
    Target Database = RMAN Target (Source database to be copied.)
    Auxiliary Database = RMAN Auxiliary (Duplicated database end result)
    1. Copy the target database’s init.ora file to the auxiliary database’s location.
    2. Modify disk locations for control files, archive logs and dump dests in init.ora if required
    3. Create locations for data files, dump dests, control files and log files
    4. Copy RMAN backup files and archive logs to same location on auxiliary DB server as they are on target DB server
    5. Create Oracle Service using ORADIM utility
    6. Start instance in nomount
    7. Create listener.ora entry on auxiliary server
    8. Create tnsnames.ora entry on target server
    9. Connect to rman catalog, target and auxiliary from the target server:
         RMAN> connect catalog rman/<password>@<catalog db>
         RMAN> connect target sys/<password>@<target db>
         RMAN> connect auxiliary sys/<password>@<auxiliary db>
    10. Run the following (modify the sequence count and datafile renames as required.)
    run{
    allocate auxiliary channel d1 type disk;
    set newname for datafile 1 to 'e:\ORACLE\ORADATA\MTSD\SYSTEM01.DBF';
    set newname for datafile 2 to 'e:\ORACLE\ORADATA\MTSD\RBS01.DBF';
    set newname for datafile 3 to 'e:\ORACLE\ORADATA\MTSD\USERS01.DBF';
    set newname for datafile 4 to 'e:\ORACLE\ORADATA\MTSD\TEMP01.DBF';
    set newname for datafile 5 to 'e:\ORACLE\ORADATA\MTSD\TOOLS01.DBF';
    set newname for datafile 6 to 'e:\ORACLE\ORADATA\MTSD\INDX01.DBF';
    set newname for datafile 7 to 'e:\ORACLE\ORADATA\MTSD\SMDBDATA.DBF';
    set newname for datafile 8 to 'e:\ORACLE\ORADATA\MTSD\SMDBIDX.DBF';
    set newname for datafile 9 to 'e:\ORACLE\ORADATA\MTSD\SMDBTEMP.DBF';
    set newname for datafile 10 to 'e:\ORACLE\ORADATA\MTSD\AUDITDATA.ORA';
    set newname for datafile 11 to 'e:\ORACLE\ORADATA\MTSD\AUDITAR.ORA';
    duplicate target database to mtsd
    logfile
    'e:\oracle\oradata\mtsd\redo01.log' size 10M,
    'e:\oracle\oradata\mtsd\redo02.log' size 10M,
    'e:\oracle\oradata\mtsd\redo03.log' size 10M,
    'e:\oracle\oradata\mtsd\redo04.log' size 10M;}

  • DB2 Migration from Windows - Linux supported with Backup/Restore ?

    Hi folks,
    we have to do a DB2 V9.1 migration from Windows -> Linux. Both servers are Intel based. Is it official supported by SAP to do this without SAP migration tools? E.g. with a backup/restore or redirected restore? I heard about it, but i'm not sure.
    Thanks a lot
    Jochen
    Edited by: Jochen Raab on Mar 1, 2010 5:40 PM

    Hi Jochen,
    Please have a look at the DB2 docu.
    http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0005960.html
    It clearly stats that Linux and Windows are not compatible.
    DB2® database systems support some backup and restore operations between different operating systems and hardware platforms.
    The supported platforms for DB2 backup and restore operations can be grouped into one of three families:
    Big-endian Linux® and UNIX®
    Little-endian Linux and UNIX
    Windows®
    A database backup from one platform family can only be restored on any system within the same platform family. For Windows operating systems, you can restore a database created on DB2 Universal Database (UDB) V8 on a DB2 Version 9 database system. For Linux and UNIX operating systems, as long as the endianness (big endian or little endian) of the backup and restore platforms is the same, you can restore backups that were produced on DB2 UDB V8 on DB2 Version 9.
    So you need to do an eport/import.
    Regards,
      Joachim

Maybe you are looking for