Sponsored Content
Top Forums UNIX for Dummies Questions & Answers [SOLVED] Restoring differential backup files Post 302698997 by csengineer on Tuesday 11th of September 2012 01:34:09 AM
Old 09-11-2012
Yeah, the patch tool is the one I was looking for. Thanks dude!
This User Gave Thanks to csengineer For This Post:
 

9 More Discussions You Might Find Interesting

1. OS X (Apple)

OS X Server: Trouble restoring mail from backup...

So I had some bad RAM in my server. Of course I didn't know it at the time. And it kept making the 10.3.5 updater crash. And that last crash did it. My drive was messed up. So I had to reformat and reinstall. Luckily I had a whole slew of fresh backups. But I'm really hung up on the mail. I backed... (0 Replies)
Discussion started by: l008com
0 Replies

2. UNIX for Dummies Questions & Answers

restoring backup using tar command

Please help me in resolving the issue. I have taken backup using the below command $ tar cvf - . |compress -> /opt/globusback2/needed_backups/apglsg.tar.Z I tried to restore the backup using the below command. $ zcat /opt/globusback2/needed_backups/apglsg.tar.Z | tar -xvf - ... (2 Replies)
Discussion started by: amirthraj_12
2 Replies

3. UNIX for Advanced & Expert Users

restoring backup using tar command

Please help me in resolving the issue. I have taken backup using the below command $ tar cvf - . |compress -> /opt/globusback2/needed_backups/apglsg.tar.Z I tried to restore the backup using the below command. $ zcat /opt/globusback2/needed_backups/apglsg.tar.Z | tar -xvf - ... (5 Replies)
Discussion started by: amirthraj_12
5 Replies

4. AIX

Question about restoring from mksysb backup

Hello, Last night I applied a DB2 fix pack which is now causing problems with the application that uses db2. Prior to applying the fix pack I did a mksysb(rootvg) which includes the file system that has db2 installed on it. If I do a restore from this will it restore the db2 version back to... (1 Reply)
Discussion started by: jyoung
1 Replies

5. UNIX for Dummies Questions & Answers

Tar differential backup

I am backing up some data to an NTFS formatted backup drive. I have to preserve the Unix permissions of the data being backed up and therfore use backup into a tar file. I would like to backup the differnential data in the tar file similiar to how Rsync works so as to save on backup time as it... (1 Reply)
Discussion started by: jelloir
1 Replies

6. UNIX for Advanced & Expert Users

how to make a full system backup excluding data and restoring it to a new system

Hi, In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way : - Make a full system backup excluding the user file system (this... (7 Replies)
Discussion started by: pagaille
7 Replies

7. AIX

restoring mksysb backup of a clustered server configured in HACMP

Hi, I have done NIM restoration via nim_bosinst a lot of times but I have some doubts on restoring a server which is clustered specifically HACMP. Previously, I don't know the trend but after doing a nim_bosinst, I can see the client's hostname is back to "localhost" rather than its original... (0 Replies)
Discussion started by: depam
0 Replies

8. Shell Programming and Scripting

Restoring files from backup based on ctime

Hello, I need to restore some yesterday emails from backup within a 5 hours timeframe this is a openvz container, backup is made by rsync files to another partition in the same server I have tried to do this #!/bin/sh cd /vz/backup/414/home/smartftp/mail/domain1.com/ for dir in new... (6 Replies)
Discussion started by: cuantica
6 Replies

9. Solaris

Restoring a system from a backup

I have backed up the contents of my Solaris 10 machine in its entirety, and I'm trying to figure out if I can somehow use this archive to restore my old system just as it was on a new machine. Assuming I have all files from my old machine backed up, is this possible? What I've been trying to do... (6 Replies)
Discussion started by: unblockable
6 Replies
LedgerSMB::Database(3pm)				User Contributed Perl Documentation				  LedgerSMB::Database(3pm)

NAME
LedgerSMB::Database - Provides the APIs for database creation and management. SYNOPSIS
This module provides the APIs for database creation and management COPYRIGHT
This module is copyright (C) 2007, the LedgerSMB Core Team and subject to the GNU General Public License (GPL) version 2, or at your option, any later version. See the COPYRIGHT and LICENSE files for more information. METHODS
LedgerSMB::Database->new({dbname = $dbname, countrycode = $cc, chart_name = $name, company_name = $company, username = $username, password = $password}) This function creates a new database management object with the specified characteristics. The $dbname is the name of the database. the countrycode is the two-letter ISO code. The company name is the friendly name for dropdown boxes on the Login screen. As some countries may have multiple available charts, you can also specify a chart name as well. Note that the arguments can be any hashref. If it is a LedgerSMB object, however, it will attempt to copy all attributes beginning with _ into the current object (_user, _locale, etc). base_backup This routine connects to the database using pg_dumpall and returns a plain text, roles-only dump of the current database cluster. This is left uncompressed for readability and ease of troubleshooting. Base backups are advised to be taken frequently and in conjunction with single database backups. The single database backups will backup all data but no roles. Restoring a new database onto a new server post-crash with only the single-database backup thus means recreating all users. The file is named roles_[date].sql by default where the date is in yyyy-mm-dd format. db_backup() This routine connects to the database using pg_dump and creates a Pg-native database backup of the selected db only. There is some redundancy with the base backup but the overlap is minimal. You can restore your database and data with the db_bakup, but not the users and roles. You can restore the users and roles with the base_backup but not your database. The resulting file is named backup_[dbname]_[date].bak with the date in yyyy-mm-dd format. get_info() This routine connects to the database using DBI and attempts to determine if a related application is running in that database and if so what version. It returns a hashref with the following keys set: username Set to the user of the current connection appname Set to the current application name, one of: ledgersmb sql-ledger undef version The current version of the application. One of: legacy SQL-Ledger 2.6 and below, and LedgerSMB 1.1 and below 1.2 (LedgerSMB only) 1.3 (LedgerSMB only) 1.3dev (LedgerSMB only) 2.7 (SQL-Ledger only) 2.8 (SQL-Ledger only) full_version The full version number of the database version status Current status of the db. One of: exists The database was confirmed to exist does not exist The database was confirmed to not exist undef The database could not be confirmed to exist, or not It is worth noting that this is designed to be informative and helpful in determining whether automatic upgrades can in fact occur or other administrative tasks can be run. Sample output might be: { appname => undef, version => undef, full_version => undef, status => 'does not exist'} or { appname => 'sql-ledger', version => '2.8', full_version => '2.8.33', status => 'exists'} or { appname => 'ledgersmb', version => '1.2' fullversion => '1.2.0', status => 'exists' } It goes without saying that status will always equal 'exists' if appname is set. However the converse is not true. If the status is 'exists' and appname is not set, this merely means that the database exists but is not used by a recognized application. So administrative functions are advised to check both the appname and status values. Finally, it is important to note that LedgerSMB 1.1 and prior, and SQL-Ledger 2.6.x and prior are lumped under appname => 'ledgersmb' and version => 'legacy', though the fullversion may give you an idea of what the actual version is run. $db->server_version(); Connects to the server and returns the version number in x.y.z format. $db->create(); Creates a database and loads the contrib files. This is done from template0, meaning nothing added to template1 will be found in this database. This was necessary as a workaround for issues on some Debian systems. Returns true if successful, false of not. Creates a log called dblog in the temporary directory with all the output from the psql files. In DEBUG mode, will show all lines to STDERR. In ERROR logging mode, will display only those lines containing the word ERROR. $db->load_modules($loadorder) Loads or reloads sql modules from $loadorder $db->exec_script({script => 'path/to/file', logfile => 'path/to/log'}) Executes the script. Returns 0 if successful, 1 if there are errors suggesting that types are already created, and 2 if there are other errors. $db->create_and_load(); Creates a database and then loads it. $db->process_roles($rolefile); Loads database Roles templates. $db->log_from_logfile(); Process log file and log relevant pieces via the log classes. perl v5.14.2 2012-03-26 LedgerSMB::Database(3pm)
All times are GMT -4. The time now is 03:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy