nBackup | simple Bash script for making local backups | Continuous Backup library
kandi X-RAY | nBackup Summary
kandi X-RAY | nBackup Summary
A simple Bash script for making local backups with different views.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nBackup
nBackup Key Features
nBackup Examples and Code Snippets
Community Discussions
Trending Discussions on nBackup
QUESTION
Is it safe to clean out the contents of the C:\ProgramData\firebird
folder, i.e. wipe it, when the Firebird service (superserver, v3.0) is not
running?
I understand that it contains lock tables etc. so should not be touched while FB is running. But it's not clear to me if it can be wiped safely when FB is not running, or if it contains data that can be vital when FB starts up again.
My situation is that I'm migrating a VM with an FB installation. Migration has been done like this, due to practical reasons (uptime vs. file transfer & VM conversion time):
Snapshot of source VM, i.e. nightly backup is copied to new location. Source stays up and running. Copy process takes about 1 day. (We have the databases locked with nbackup when nightly snapshot is taken).
Snapshot is unpacked at target location, converted from VMWare to HyperV and brought online for additional reconfig and system testing.
A few days pass.
Both source and target Firebird services are stopped, so no database activity is going on anywhere.
Sync files from source to target, including database files. This file transfer is much smaller then in step 1 so it can be done during offline time.
In step 5 I find diffs in the C:\ProgramData\firebird
folder, and I'm
wondering what would be the best approach:
A) Wipe the folder at target.
B) Sync so target has the same content as source.
C) Leave target as is.
Please note that when FB service is started again at target, the
database files will be identical with those at the source at the time of
FB shutdown, and probably won't "match" the contents of
C:\ProgramData\firebird
at target. I would assume that this fact rules
out option C).
ANSWER
Answered 2020-Jan-12 at 12:11The files in C:\ProgramData\firebird
are only used during runtime of the Firebird server and contain transient data. It should be safe to delete these files when Firebird is not running.
In other words, when migrating from one server to another, you do not need to migrate the contents of C:\ProgramData\Firebird
.
QUESTION
I am trying to create a program to help with my backups. It works by copying a project to a backup location. Before copying it does some checks. I check to see if the folder has been backed up previously, if it has I need that folder delted before copying the new backup.
When I backup projects that don't have a .git folder it works fine. As soon as a project directory has a .git folder, it breaks. It won't delete the .git folder, which messes up the rest of the program. I can't seem to find a way to delete the .git folder.
My code: https://pastebin.com/jyGhQDB5
...ANSWER
Answered 2019-Apr-17 at 00:06Here's what I came up with. Try it out and hopefully it'll work. It assumes that you're on Windows.
Note: The on_rm_error method is from this post.
QUESTION
I am really confused here about Firebird v2.5 backup/restore process. What should I use to backup/restore a local Firebird database: fbsvcmgr.exe, gbak.exe, isql.exe or nbackup.exe
Are these all options or I am wrong about something!
What is the practical way to do it for a C++ application?
How should I know if a database already exists the first time, so I can decide whether to restore it or not.
...ANSWER
Answered 2019-Feb-04 at 08:29I usually use gbak (don't know about the others).
Backup
gbak -b -v -user SYSDBA -password "masterkey" D:\database.FDB E:\database.fbk
Restore
gbak -c -user SYSDBA -password masterkey E:\database.fbk E:\database_restore.fdb
If file exists for restore you could do it with gbak restore flags -c = create new file -r = replace file
Here is good page for FB backup/restore: http://www.destructor.de/firebird/gbak.htm
QUESTION
I am trying to get data by the HttpClient. Data vary in size, it could be from few bytes to megabyte. I noticed many times my application exist even before it returns from the GetAsync. How can I wait until GetAsync complete it call? From the main app:-
...ANSWER
Answered 2018-Jan-07 at 22:04As the method is async, the backup.DoSaveAsync()
line only start a Task but doesn't wait for the result, so you may call Console.ReadLine
(and possibly exit your program) before the task is completed. You should return Task
instead of void
- it's generally bad design to have a void async method, and younhave to await backup.DoSaveAsync()
either via await (if you call from an async method), either via .Wait()
.
Also, in case of error in GetData
, you don't return any error for DoSaveAsync
- you may want to deal with this, in the current code, you would print "Failed to get snapshot" and then "Backup has done successfully in SQL database". Consider to not use Console.ReadLine in GetData
and return a Task in DoSaveAsync
indicating success
No need to put a thread.sleep
here - you already await the result.
QUESTION
I made a shell script to backup, view and restore installed packages in my Linux system. The script looks like:
...ANSWER
Answered 2017-Dec-26 at 11:49The correct one would be
QUESTION
In one MacOSX I found an issue with date and time while receiving mails from all my python scripts(in this case 2), where some are being received without any date, and others with a US format(month/day/year), not sure, and I want to use the day/month/year format, and others with wrong time. Seems to be almost random when it occurs.
For example in a webmail that I have installed in that server:
Mail 1: https://image.prntscr.com/image/d_-qJ0bjQj_p1W-bJkMQ4g.png
Mail 2: https://image.prntscr.com/image/I14uoJBZT9aMjmDAr31zXA.png
Mail 3: https://image.prntscr.com/image/9JSlEuogSoWDCGEefT5K-w.png
And other example in thunderbird:
Mail 1: https://image.prntscr.com/image/2n-I8y1aRl2BJSig5-yTPg.png
Mail 2: https://image.prntscr.com/image/kjQRl0ooRfqNRr1hJ5YWSg.png
Mail 3: https://image.prntscr.com/image/0z_VhGgjRuSkcX_7kY6dbg.png
In Gmail app from android, I dont have this issue at all.
In both scripts I am using this to send:
...ANSWER
Answered 2017-Aug-09 at 08:19So seems that I was able to bypass this problem by removing the Date field from:
QUESTION
I have a problem, you need to assemble the ibase plugin in qt5 in ubuntu. After a series of manipulations carried out by me I. I assume that you need to mount the folder include/firebird but can't find her.
...ANSWER
Answered 2017-May-15 at 22:03It was successfully compiled on Ubuntu 16.10 and Debian jessie.
Preamble:
on Debian was used
su -
insteadsudo
for building of the QT sources used wiki
/etc/apt/source.list
- you must put some source URI'sdeb-src ...
here
Install the packages:
QUESTION
I am new to JS and even newer to Jquery and fullcalendar. I have created a calendar that works fine on a page by itself. I am trying to combine this code with another page and I can't get the calendar to render.
First I include some files:
...ANSWER
Answered 2017-Feb-18 at 04:34You have typos in the 3rd and 4th script tags
QUESTION
Is it possible to take a backup from a remote machine to local machine using nbackup? My database is in a server and I need to take the backup to my local PC using NBackup.
When I tried, it is not allowing to give the backup path to a local machine.
...ANSWER
Answered 2017-Feb-03 at 11:29You can use gbak
to backup a remote database to local machine.
How to backup the remote database to a local hard disk?
Here's the GBAK command:
gbak -b -v 192.168.0.20:/dbases/mydb.fdb C:\mybackup.fbk -user SYSDBA -pass 123456
QUESTION
I took a nbackup
and when i try to restore using the command :
ANSWER
Answered 2017-Jan-10 at 09:04The error code 80 in the error message is a Windows specific error code for ERROR_FILE_EXISTS
. You can only restore an nbackup backup to a new database file, it will fail when you attempt to overwrite an existing database.
As written in the documentation of NBackup, Making and restoring backups:
If the specified database file already exists, the restore fails and you get an error message.
In Firebird 2.5 and earlier the error does not include the reason, in Firebird 3 it will show:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nBackup
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page