recentpopularlog in

kme : backupandrecovery   145

« earlier  
Firefox Bookmark Backup Reader/Decompressor — Fx File Utilities
Firefox creates frequent backups of your bookmarks. Automatic backups are compressed using Mozilla's flavor of LZ4 compression (.jsonlz4 file extension), while backups you create yourself (in the Library window) are not compressed (.json file extension by default). This tool can convert a backup file to the HTML export format.
firefox  bookmarks  json  jsonlz4  backupandrecovery  importexport  solution 
december 2019 by kme
linux - rsync copy over only certain types of files using include option - Stack Overflow
Here's the important part from the man page:
As the list of files/directories to transfer is built, rsync checks each name to be transferred against the list of include/exclude patterns in turn, and the first matching pattern is acted on: if it is an exclude pattern, then that file is skipped; if it is an include pattern then that filename is not skipped; if no matching pattern is found, then the filename is not skipped.

To summarize:

* Not matching any pattern means a file will be copied!
* The algorithm quits once any pattern matches

Also, something ending with a slash is matching directories (like find -type d would).

Let's pull apart this answer from above.
<code class="language-bash">rsync -zarv --prune-empty-dirs --include "*/" --include="*.sh" --exclude="*" "$from" "$to"</code>

* Don't skip any directories
* Don't skip any .sh files
* Skip everything
* (Implicitly, don't skip anything, but the rule above prevents the default rule from ever happening.)

Finally, the --prune-empty-directories keeps the first rule from making empty directories all over the place.
rsync  backupandrecovery  filemanagement  sysadmin  solution 
november 2019 by kme
unix - tar – extract discarding directory structure - Super User | https://superuser.com/
If you just want to remove a few path segments, then --strip-components=n or --strip=n will often do:
<code class="language-bash">
tar xvzf tgz --strip=1
</code>
unix  linux  sysadmin  tar  archive  backupandrecovery  solution 
may 2019 by kme
package management - Restoring all data and dependencies from dpkg --set-selections '*' - Ask Ubuntu
Preferred to 'dpkg --get-selections', apparently, which WTF does 'dpkg --get-selections' even do then, anyway?
<code class="language-bash">
# Backup:
apt-mark showauto > pkgs_auto.lst
apt-mark showmanual > pkgs_manual.lst

# Restore:
sudo apt-mark auto $(cat pkgs_auto.lst)
sudo apt-mark manual $(cat pkgs_manual.lst)
</code>
dpkg  apt  debian  ubuntu  packagemanagement  backupandrecovery  solution 
may 2019 by kme
sourcefrog/conserve: [alpha] robust portable file backup tool in Rust | https://github.com/
[alpha] robust portable file backup tool in Rust. Contribute to sourcefrog/conserve development by creating an account on GitHub.
sysadmin  backup  backupandrecovery  commandline  rust  alternativeto  duplicity 
february 2019 by kme
bup/bup: Very efficient backup system based on the git packfile format, providing fast incremental saves and global deduplication (among and within files, including virtual machine images). Current release is 0.29.2, and the development branch is master.
Very efficient backup system based on the git packfile format, providing fast incremental saves and global deduplication (among and within files, including virtual machine images). Current release is 0.29.2, and the development branch is master. Please post problems or patches to the mailing list for discussion (see the end of the README below). - bup/bup
git  backup  packfile  backupandrecovery  utility  commandline  alternativeto  duplicity 
february 2019 by kme
laurent22/rsync-time-backup: Time Machine style backup with rsync. | https://github.com/
Time Machine style backup with rsync. Contribute to laurent22/rsync-time-backup development by creating an account on GitHub.
rsync  backupandrecovery  commandline  sysadmin  alternativeto  timemachine 
january 2019 by kme
GitLab.com database incident | GitLab | https://about.gitlab.com/
Yesterday we had a serious incident with one of our databases. We lost six hours of database data (issues, merge requests, users, comments, snippets, etc.) for GitLab.com. Git/wiki repositories and self-hosted installations were not affected. Losing production data is unacceptable and in a few days we'll publish a post on why this happened and a list of measures we will implement to prevent it happening again.
backupandrecovery  backups  sysadmin  dba  database  fail  postmortem 
june 2018 by kme
git - How do I make GitLab delete old backups? - Server Fault | https://serverfault.com/
In /etc/gitlab/gitlab.rb I added the following line:

gitlab_rails['backup_keep_time'] = 60


Don't forget 'gitlab-ctl reconfigure' after that.
gitlab  backupandrecovery  backup  sysadmin  configfile  solution 
october 2017 by kme
rotate-backups 4.4 : Python Package Index
Works, but filenames like '1495849557_2017_05_26_9.2.0_gitlab_backup.tar' will confuse it.
python  sysadmin  backup  backupandrecovery  automation  script  solution 
may 2017 by kme
PSTDisableGrow and the Enterprise Vault Outlook Addin 9.0.1 – Things I Learned Today
I’ve just finished working on an issue with the folks in Support, relating to PSTDisableGrow. A customer had the key set per :

http://support.microsoft.com/kb/954268

Click Start, click Run, type regedit, and then click OK.
Locate and then click the following registry subkey:HKEY_CURRENT_USER \ Software \ Microsoft \ Office \ 12.0 \ Outlook \ PST
On the Edit menu, point to New, and then click DWORD Value.
Type PstDisableGrow, and then press ENTER.
Right-click PstDisableGrow, and then click Modify.
In the Value data box, type 1, and then click OK.
Exit Registry Editor.

Via: https://social.technet.microsoft.com/Forums/office/en-US/2b70b52c-4a2f-4341-96b9-2a004494a59c/cannot-move-the-items-you-dont-have-appropriate-permission-to-perform-this-operation?forum=outlook (where, as usual, you have to wade through a few WTF/bullshit answers--"put your .PST file on read-only media and don't use duplicate filenames!"--to find the one person who knows what they're talking about; cf. https://answers.microsoft.com/en-us/office/forum/office_2003-outlook/you-dont-have-appropriate-permission-to-perform/e8084abe-a7c4-4650-b5a5-868e58984f6d)
outlook  pst  email  archive  backupandrecovery  annoyance  solution 
april 2017 by kme
Backup Eclipse settings - Stack Overflow
We use the concept of a baseline for new dev's but I think you can apply the same technique. Basically, what you need to do is this:

Get a new copy of Ecipse and set it up how you like with no projects.
Take a copy both the Eclipse install directory and the workspace - zip them up and store them somewhere
Remove the workspace link in Window -> Preferences -> Workspaces
When you need a new version, copy the template version down and voila!

Hope this helps.
eclipse  backup  collaboration  backupandrecovery  migration  settings  conffiles  maybesolution 
may 2016 by kme
Reliable Linux backups: How to backup Linux, BSD and other Unix-like systems properly
Linux, and all Unix machines, use hard links extensively, so make 100% sure you maintain link integrity. Rsync for instance, needs the special flag --hard-links, even when you've also specified --archive (as the man page says, --archive still lacks --hard-links, --acls and --xattrs).

If shutting down such software before the backup is not an option, schedule jobs which periodicly dump the data of the database (using pg_dump for Postgresql, slapcat for OpenLDAP, "svnadmin dump" or svn-backup-dumps for Subversion, etc) into (date stamped) files. These files are then backed up and you should be safe. Use the software's native dump utility whenever possible, as pg_dump and slapcat are for Postgresql and OpenLDAP respectively.
unix  linux  backups  sysadmin  disasterrecovery  backupandrecovery  newbie  howto  advice  bestpractices  gotchas 
april 2016 by kme
linux - How do I clone an OpenLDAP database - Stack Overflow - http://stackoverflow.com/
http://stackoverflow.com/questions/792563/how-do-i-clone-an-openldap-database#2902158
For example, dump database from a master server under dc=master,dc=com and load it in a backup server

$ ldapsearch -Wx -D "cn=admin_master,dc=master,dc=com" -b "dc=master,dc=com" -H ldap://my.master.host -LLL > ldap_dump-20100525-1.ldif
$ ldapadd -Wx -D "cn=admin_backup,dc=backup,dc=com" -H ldap://my.backup.host -f ldap_dump-20100525-1.ldif

The -W flag above prompts for ldap admin_master password however since we are redirecting output to a file you wont see the prompt - just an empty line. Go ahead and type your ldap admin_master password and and it will work. First line of your output file will need to be removed (Enter LDAP Password:) before running ldapadd.

Last hint, ldapadd(1) is a hard link to ldapmodify(1) with the -a (add) flag turned on.
openldap  ldap  sysadmin  backupandrecovery  importexport  solution 
february 2016 by kme
Copy directory tree as hard links...
> Linux has a nice little 'cp -al' flag combo to do this. The FreeBSD
> cp(1) manual page says to use pax or tar, but how do I get the ability
> to rename the file without first creating a destination file? I don't
> want an archive, just regular directory tree sitting right next to the
> original, but with a new name ... consisting of of hard links back to
> the original. For example on linux I could do something like:
>
> $ ls
> foo/
>
> $ cp -al foo bar
>
> The result would be a new copy of foo, which takes up no additional
> space, as all files share the same inodes. Is there an easy way to do
> this on FreeBSD?
cpio(1) Unfortunately the man page is pretty useless, and you have to hunt through the info page instead. But something like this should do what you want: # cd /some/dir # find . -depth -type f -print0 | cpio -0pdl /other/dir
hardlinks  linux  freebsd  backupandrecovery  sysadmin  solution 
november 2015 by kme
MySQL backups — DatabaseJournal.com
SQL dumps have the advantage of being easy to use and flexible, as the SQL statements can be manipulated as required using standard text tools, so it is easy to restore only certain records or tables. However, they are larger, and often much slower to create and restore than raw file copies, which simply copy the binary files.
dba  database  backupandrecovery  hotbackup  terminology  solution 
october 2014 by kme
Backup MySQL Server - Server Fault
mysqldump breaks down when you have big databases, and/or when you rely on MyISAM. We have some 400G databases with a lot of indexes that needs to be rebuilt when importing the dump, so that a recovery from backup takes tree days. LVM snapshot gives a much better recovery time when you've outgrown mysqldump
database  dba  backupandrecovery  hotbackup  backup  mysql  solution 
october 2014 by kme
Avoiding Tar's (or Any Other Commandline's) Argument List Too Long Error | DZone [http://dzone.com/]
# a shorthand of this would be:
find . -name '*.ext' -print | tar -cvzf archive.tar.gz --files-from -
unix  sysadmin  backupandrecovery  find  tar  solution  webmaster 
august 2014 by kme
« earlier      
per page:    204080120160

Copy this bookmark:





to read