backup

How to save/restore Sublime Text 2 configs/plugins to migrate to another computer?

末鹿安然 提交于 2019-12-02 23:58:31
问题 I need to migrate from one Mac to another, and want Sublime Text 2 on a new computer to have all the same configuration/plugins I have installed on the old one. Is there some folder(s) I could just copy and restore on another one to replicate everything? 回答1: I just set up a good solution for this, it requires dropbox. I am currently using this to sync plugins and settings across ~5 different sublime installs on windows, linux, osx, and a few vm's. Step 1: use PackageControl to manage all

Rsync how to include directories but not files?

♀尐吖头ヾ 提交于 2019-12-02 23:46:50
I have a directory structure and files like this data/ data/a.txt data/folder/ data/folder/b.txt data/folder/folder/ data/folder/folder/c.txt ... a.txt , b.txt , and c.txt are large files that are computer-generated and renewed frequently. They should NOT be backuped -- but I want to backup the directory structure : data/ data/folder/ data/folder/folder/ How can I do this with rsync and --exclude-from, without specifying every folder, but something like rsync -a data/* --exclude-from=exclude.rsync "" --onlyfoldersandnotfiles"" ? Thanks for help ! $ rsync -a -f"+ */" -f"- *" source/ destination

Backup solutions for AWS EC2 instances [closed]

让人想犯罪 __ 提交于 2019-12-02 22:43:36
I'm looking for a backup solution for Amazon EC2 instances. I found this: http://www.n2ws.com and I wanted to know if there were other ones. Thank you PS: It's possible to automatically backup RDS databases using Amazon solution but there isn't anything for EC2 instances... Is there? I've been using Skeddly for several months now to automatically backup the EBS volumes attached to my EC2 instances. I'm really happy with it so far. I liked the way I could define which instances to backup: only instances with a specific tag are backed up. I just have to add this tag to the instances I want to

How to install a bash function containing variables using a bash script? [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 21:51:43
问题 This question already has answers here : How to avoid heredoc expanding variables? [duplicate] (2 answers) Closed 2 years ago . I am attempting to create a bash script that will allow me to install the same bash function across multiple machines. This particular function creates a copy of a file with a timestamp in a backup directory: filebackup () { cp "${@}" ~/"filebackup/${@}_$(date +%Y-%m-%d_%H:%M:%S).bk"; } Here is my bash script: cat <<EOT >> ~/.bashrc # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

How do I back up a database to a .bak file?

时光毁灭记忆、已成空白 提交于 2019-12-02 21:44:34
I have a website I've created in Visual Studio 2008 and I need to take it live. How can I backup the database file to a .bak so I can hand it over to the hosting company to place on the server? From a SQL prompt: BACKUP DATABASE MyDatabase TO DISK='E:\MyDatabase.bak' Go to Microsoft Server Management Studio and right click on your database name. Go to "Tasks" -> "Back Up..." Then assign your properties, ensure that "Backup Type" is full. Then at the right there is a button "Add" press that and set your filename, ensure that you place the extension .bak at the end of the file name. Finally hit

How to backup stored procedures in MySQL

十年热恋 提交于 2019-12-02 20:35:24
I use mysqldump with MySQL 5.0 and I back it up every day, but do not understand the method that only stored procedure backs up. How can I back it up? I'm not sure whether you're asking to back up stored procedures as well as everything else, or just the stored procedures on their own... Stored procedured in dump with everything else: mysqldump -R <dbname> #or mysqldump --routines <dbname> Just the stored procedures: mysqldump -n -t -d -R <dbname> #or mysqldump --no-create-db --no-create-info --no-data --routines <dbname> Does that help? You can also put routines=true in the [mysqldump]

Backup a database on a HDD with a different sector size

女生的网名这么多〃 提交于 2019-12-02 20:32:58
In our development environment we have long been using a particular backup and restore script for each of our products through various SQL Server versions and different environment configurations with no issues. Recently we have upgraded to SQL Server 2012 as our standard development server with SQL Compatibility Level 2005 (90) to maintain support with legacy systems. Now we find that on one particular dev's machine we get the following error when attempting to backup the database: Cannot use the backup file 'D:\MyDB.bak' because it was originally formatted with sector size 512 and is now on

Can I get a dump of all my databases *except one* using mysqldump?

坚强是说给别人听的谎言 提交于 2019-12-02 20:21:26
I'm currently using mySQLdump to backup my dev machine and servers. There is one project I just started, however, that has a HUUUUUGE database that I don't really need backed up, and i'll be a big problem to add it to the rest of the backup cycle. I'm currently doing this: "c:\Program Files\mysql\MySQL Server 5.1\bin\mysqldump" -u root -pxxxxxx --all-databases > g:\backups\MySQL\mysqlbackup.sql Is it possible to somehow specify "except this database(s)"? I wouldn't like to have to specify the list of DBs manually, since that would mean that I'd have to remember updating my backup batch file

restoring git repository from bundle backup

十年热恋 提交于 2019-12-02 20:15:32
i created backups of my git repository like in How to backup a local Git repository? proposed with git bundle create /tmp/foo-all --all I can see all refs are in there, including a remote ref created by git-svn. Now I can't figure out how to restore this bundle to a local repository again. I am quite quite sure i've done it already once. I tried git-clone but that gives me a just a repository with my backup bundle as remote repo. I also tried git init git bundle unbundle /tmp/foo --all but this just lists all references... Verifying the bundle gives: $ git bundle verify $somewhere/foo.bundle

How can I retrieve the logical file name of the database from backup file

只愿长相守 提交于 2019-12-02 20:13:08
I was looking into the steps of how to Restore Database Backup using SQL Script (T-SQL) . Here are the steps: Database YourDB has full backup YourBackUpFile.bak . It can be restored using following two steps: Step 1: Retrieve the logical file name of the database from the backup. RESTORE FILELISTONLY FROM DISK = 'D:BackUpYourBackUpFile.bak' GO Step 2: Use the values in the LogicalName column in the following step. ----Make Database to single user Mode ALTER DATABASE YourDB SET SINGLE_USER WITH ROLLBACK IMMEDIATE ----Restore Database RESTORE DATABASE YourDB FROM DISK = 'D:BackUpYourBackUpFile