search for: backup_fil

Displaying 17 results from an estimated 17 matches for "backup_fil".

Did you mean: backup_file
2004 Feb 25
5
Wide strings and LPCTSTR types
All, I was experimenting with converting LPCTSTR strings to wide strings with something like this: // Converts a Ruby string to a LPWSTR LPCTSTR AllocWideLString(VALUE rbString){ char* str = STR2CSTR(rbString); int length = (strlen(str)+1) * sizeof(WCHAR); LPCTSTR lpStr = (LPCTSTR)malloc(length); MultiByteToWideChar( CP_ACP, 0, str, strlen(str)+1,
2016 Jul 26
1
how to backup samba ad domain
...properly! The restore test it is OK for me! I scheduled via CRON and the backup takes one minute only to run *#!/bin/bash* *####################################* *#* *# Samba_AD backup script* *#* *####################################* *# Stop Samba* */etc/init.d/samba stop* *# What to backup* *backup_files="/etc/samba /var/lib/samba"* *# Where to backup to* *dest="/BACKUP"* *# Create archive filename* *day=$(date +%Y_%m_%d_%H%M)* *hostname=$(hostname -s)* *archive_file="$hostname-$day.tgz"* *# Backup the files using tar* *tar --acls --xattrs -czf $dest/$archive_file...
2010 Aug 08
2
paperclip save to disk and s3
I have a standard Paperclip setup that saves a file to my disk. In addition I would also like the file saved to my amazon s3 bucket. [code] after_save :copy_to_s3 def copy_to_s3 has_attached_file :photo, :storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", :styles => { :thumb => "100x100#", :small => "750x750>"
2008 Jan 29
3
Dump on remote filesystems?
I have a couple C5 systems I want to back up. My plan is to, one way or another, back them up to a C5 machine in my office. I have samba installed on the systems to back up, the machines are mounted on the system in my office, and a tape library hanging of the system in my office. I was hoping to perform a simple /sbin/dump of the remote systems. I put together a script for another
2007 Mar 02
1
Off-topic: Howto decrypt OpenSSL file in Win32 environment
Hi all, I supose the subject is descriptive enough. In a CentOS server I do the next to make the daily backups: tar cfv - dir_data/ | openssl enc -e -salt -aes256 -pass pass:$PASSWORD -out backup_file.bin So I get an well-encrypted and tared file. If I want to decrypt and the file is easy in Unix/Linux environment: openssl enc -d -aes256 -in backup_file.bin | tar xfv - -C dir_what_you_want/ But the problem I currently have is I don't know how to make it in Win environment. ??? -------...
2009 Nov 19
2
rsync of STDIN to a file.
...ost using ssh. It occurred to me that it might be possible to use rsync. I'm hoping rsync could be told to capture STDIN and treat it as a single file that it would then sync with the named file at the remote end. Perhaps something like this: tar czf - --files-from $FILE_LIST | rsync - $HOST:${BACKUP_FILE} I've been unable to find any reference to rsync being used in this fashion. Can anyone tell me whether this is possible today, and if not whether it might be considered for a future version? Cheers, Mark -------------- next part -------------- An HTML attachment was scrubbed......
2009 Jul 10
2
[PATCH: node 0/3] replace ovirt-identify-node with matahari
This patchset removes ovirt-identify-node and ovirt-listen awake. It adds startup script support for the matahari qmf agent, which takes over the responsibility for communicating node hardware capabilities to the ovirt-server. On the server side, host-browser has had its node identification functionality replaced by a new script, host-register, which is what interfaces with the matahari qmf agent
2009 Jul 08
1
[PATCH: ovirt-identify-node replacement 0/4] ovirt node patch to replace ovirt-identify-node with matahari qmf agent
The purpose of this patch is to add support for the matahari qmf agent package (http://git.et.redhat.com/?p=matahari.git;a=summary) to the node. The following actions are taken: 1. Deprecate ovirt-identify-node and ovirt-listen-awake by removing them from the autotools scripts, the rpm spec and the node startup scripts. 2. Remove ovirt-listen-awake and ovirt-identify-node completely. 3. Add
2005 May 19
3
patches
...-2.3.2test/install.sh 2005-05-19 17:51:04.000000000 -0500 +++ shorewall-2.3.2/install.sh 2005-05-19 09:16:52.000000000 -0500 @@ -579,6 +579,16 @@ ln -s ${DEST}/${INIT} /usr/share/shorewall/init fi +# Install the providers file +# +if [ -f ${PREFIX}/etc/shorewall/providers ]; then + backup_file /etc/shorewall/providers +else + run_install $OWNERSHIP -m 0744 zones ${PREFIX}/etc/shorewall/providers + echo + echo "providers file installed as ${PREFIX}/etc/shorewall/providers" +fi + # # Install the firewall script #
2011 Sep 16
2
Cannot get the syntax of --include-from right
Here is part of my backup script: nice -n 15 rsync -avl --exclude=".*" \ --include-from="/home/bob/backup_includes" \ "$fromdir" "$todir" Here is the content of /home/bob/backup_includes /home/bob/.vimrc /home/bob/.gitconfig My problem is that neither the .vimrc nor .gitconfig are copied to the backup directory. I have read the man page about
2016 Jul 26
5
how to backup samba ad domain
Hai Kevin, I to have more dc's but same as what your saying.. > In general that's fine if all you care about is being able to recreate a > failed DC (after hardware failure or bad system update). It's no use in > protecting you against user/sysadmin error where you make large, but > unwanted changes to your directory (like accidentally deleting 200 users) > and you
2016 Dec 14
0
[PATCH v2 3/4] sysprep: Add a new operation to remove editor backup files (RHBZ#1401320).
Remove editor backup files such as *~ and *.bak wherever they occur within the guest filesystem. This also includes a test. --- sysprep/Makefile.am | 2 + sysprep/sysprep_operation_backup_files.ml | 98 +++++++++++++++++++++++++++++++ sysprep/test-virt-sysprep-backup-files.sh | 64 ++++++++++++++++++++ 3 files changed, 164 insertions(+) create mode 100644 sysprep/sysprep_operation_backup_files.ml create mode 100755 sysprep/test-virt-sysprep-backup-files.sh diff --git a/sysprep/Makefi...
2005 Apr 07
4
Shorewall 2.2.3
http://shorewall.net/pub/shorewall/2.2/shorewall-2.2.3 ftp://shorewall.net/pub/shorewall/2.2/shorewall-2.2.3 Problems Corrected: 1) If a zone is defined in /etc/shorewall/hosts using <interface>:!<network> in the HOSTS column then startup errors occur on "shorewall [re]start". 2) Previously, if "shorewall status" was run on a system whose kernel lacked
2016 Dec 14
4
[PATCH 0/4] sysprep: Remove various backup files.
https://bugzilla.redhat.com/show_bug.cgi?id=1401320 This series contains two new operations. The second -- and least controversial -- is "passwd-backups" which removes files such as /etc/passwd-, /etc/shadow- and so on. The first one ("backup-files") searches the whole guest filesystem for any regular file which looks like an editor backup file, such as "*~" and
2016 Dec 14
5
[PATCH v3 0/5] sysprep: Remove various backup files.
v3: - Split out test for "unix-like" guest OSes into separate commit. - Add guestfish --format=qcow2 to the test (x2). Rich.
2016 Dec 14
6
[PATCH v2 0/4] sysprep: Remove various backup files.
In v2: - The backup-files operation now operates on a conservative whitelist of filesystems, so it won't touch anything in /usr. Consequently it also runs much more quickly, about 4 seconds on the barebones virt-builder fedora-25 image. - Call Gc.compact () in visit_tests. - Added documentation to fnmatch.mli.
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...e, query) + udev = subprocess.Popen(udev_cmd, shell=True, stdout=PIPE, stderr=STDOUT) + udev_output = udev.stdout.read() + udev.poll() + udev_rc = udev.returncode() + if udev_rc == 0: + os.system("echo %s") % udev_output + return udev_output + +def backup_file(file): + dir = os.path.dirname(file) + if dir in os.listdir("/"): + print "unexpected non-absolute dir: %s" % dir + sys.exit(1) + os.system("mkdir -p %s%s") % (OVIRT_BACKUP_DIR, dir) + if os.path.exists(file): + shutil.copy(file, OVIRT...