Hot answers tagged

17

You can use CLONEZILLA for this purpose. Clonezilla is a free partition and disk imaging/cloning tool which can be used to backup all your data (whole disks or partitions) in a highly compressed way and later clone it back to your hard disk to get it into exact same condition. This is faster than installing the OS most of the times. Download Clonezilla ...


12

It can be done in a few ways. But the easiest one is to just copy all files from the old drive to the new one. Create an ext4 partition and a swap partition on the new drive. Boot from LiveUSB. Mount the old Ubuntu partition to some directory, mount the new one to some other directory. Copy all files from the old one to the new one using cp -a command. ...


11

You're sort of describing what rsync was designed for. From man rsync: Rsync finds files that need to be transferred using a "quick check" algorithm (by default) that looks for files that have changed in size or in last-modified time. Any changes in the other preserved attributes (as requested by options) are made on the ...


9

In case you have some time and want to go safe: $ dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync Explanation of the command: if is the input, of the destination bs sets the block size. It's the size of the chunks dd will read and write in. Higher Chunk sizes usually means higher performance but also more corruption of data if input disk has errors, ...


7

You can use Clonezilla to backup the whole system in its current state. Download the ISO and create a bootable media (CD/DVD/USB) from it. Boot from the media and save the whole disk or single partitions to another disk. If you want to restore the image - boot from the media again and start restoring. Comprehensive information on how to exactly do this ...


7

You can keep the NTFS partition with your files, if you have enough free space. Just shrink the NTFS partition, install Ubuntu, then copy your files to an Ubuntu partition. After that you will be able to safely remove the NTFS partition and expand Ubuntu partition(s). That is one of the ways not involving external storage.


6

You can just copy everything inside it (i.e. e.g. sudo cp -R /boot/efi /path/to/backup is fine, however personally I'd suggest to use tar: sudo tar cfz /path/to/backup/ESP_backup.tar.gz /boot/efi); The filesystem in which to store the backup is irrelevant; the only concern might be the permissions, but the UEFI firmware doesn't cater for Linux permissions ...


5

You need to pass the command components as elements of a list, so you can add tar to the TAR_CMD variable and then use split(' ') to create a list of command components separated on spaces: TAR_CMD='tar .....' subprocess.call(TAR_CMD.split(' ')) Or directly: subprocess.call('tar ....'.split(' '))


5

The standards fonts directories are: /usr/share/fonts, /usr/local/share/fonts, and ~/.fonts. You backup those directories, then when you've restored the contents run: sudo fc-cache -f -v and your fonts will be available to your system [edit] you can also use fc-list to list all installed font before the backup


5

This problem impacts the underlying backend software, duplicity as well as deja dup. I filed a bug report for duplicity, which has now both confirmed the bug and issued a patch, see: https://bugs.launchpad.net/duplicity/+bug/1453232 This bug affects duplicity version 0.7.01 and is fixed in 0.7.02.


5

Create some scripts sudo nano /usr/local/bin/rsync_html #!/bin/bash /usr/bin/rsync -av --delete /var/www/html /media/stan/Seagate\ Expansion\ Drive/backups/ sudo nano /usr/local/bin/rsync_documents #!/bin/bash /usr/bin/rsync -av --delete /home/stan/documents /media/stan/Seagate\ Expansion\ Drive/backups/ sudo nano /usr/local/bin/rsync_backups ...


5

".bak" is a filename extension commonly used to signify a backup copy of a file. - Wikipedia To restore this backup file : Delete the interface file with the broken settings. Remove .bak of the interfaces.bak file.


4

When you ask multiple questions, you need to find one expert versed in multiple areas which becomes more unlikely the more questions you put into... well, one question! ;-) However, someone asked me to help you out, so I'll go for it: Use NTFS: none of the fuss, all of the advantages (for a certain definition of fuss ) Just use CloneZilla, but read its ...


4

Global issues: Use indentation. It makes your code more readable (for you and for us). Use only straight quotes in bash. Other types of quotes might break commands. Do not append ; at the end of a single command. The ; character has a specific meaning and it's useless if appended to a single command. Specific issues: fdisk -l; You need to run fdisk as ...


4

The only solution I am aware of is pixz (sudo apt-get install pixz), a variant of xz using a blocked encoder which allows for fast random acccess/indexing. Additionally, it is a parallel method using multiple cores for compression. Citing the docs: The existing XZ Utils ( http://tukaani.org/xz/ ) provide great compression in the .xz file format, but ...


4

Attic Backup Attic is a deduplicating backup program written in Python. The main goal of Attic is to provide an efficient and secure way to backup data. The data deduplication technique used makes Attic suitable for daily backups since only the changes are stored. Main Features: Easy to use Space efficient storage: Variable block size ...


4

My backup sets currently contain /var (except /var/run, /var/cache, /var/tmp) /srv /etc /root /home /usr (/usr/local only, nothing else) Note this is for a server, so backing up things like /etc saves all my configuration for my services, I have web servers in /srv (though if you have them in /var/www, they would still be in this backup set), I have ...


4

Aptik After seeing the various answers here (and not disagreeing with any of them) it strikes me that you asked for simplicity. In my comment, I linked to an application called Aptik and I'm going to show you why I think this meets your criteria best. Aptik is simple to install and trivially easy to use. It is also a handy dandy GUI (Graphical User ...


4

You can use Clonezilla Live: Two types of Clonezilla are available, Clonezilla live and Clonezilla SE (server edition). Clonezilla live is suitable for single machine backup and restore OR Systemback Tool The Systemback tool allows you to create restore points, backups, and live images of a running system. Currently, it only works for Ubuntu ...


4

Yes. I have three users including the admin. All gets backed up in an internal hard drive in separate folders. Each user has to setup Deja Dup from their own account. Backup will only happen if and when the user is logged on. I don't have any experience using Deja Dup with an external hard drive. You may have to make sure your other user has the ...


4

To set up the cronjob for yr present non-root user, do in terminal: $ crontab -e The above will open yr (non-root) user's crontab with his/her default editor. Alternatively, to do so for the root crontab, but with yr present (presumably non-root) user environment parameters (default editor, etc.): $ sudo -i crontab -e In yr opened crontab, enter a new ...


4

Insert an external HDD formatted on another machine using FAT if none of your files are >4GB and type the following command: ls /media/$USER That will give you a list of names one of which is your hard drive. Then copy the files over by issuing: cp --verbose /home/$USER/* /media/$USER/NameOfHDD Where you substitute NameOfHDD for the name you found ...


3

No, you cannot do this with gedit. This was a declined feature request. It can apparently be done with a plugin, but such a plugin is not published - not that I can find, anyway,


3

The folder ~/.thunderbird includes everything you need. It includes emails, accounts, settings, (email-) passwords etc. If you simply backup the folder regularly, you can simply copy it back to your newly installed system, into ~/ (which is your home directory, /home/yourname). Even the installed extensions, add-ons etc. will be available instantly in most ...


3

Remember that VFAT/FAT32/FAT16/et al... Microsoft's glorious filesystem, only stores file times with a minimum resolution of 2 seconds. Meaning that if your source file has a mtime of 13:35:47, VFAT will save it as 13:35:46. Meaning your source file will always be newer. The cp command has no mechanism to deal with MS's weirdness, files will always be ...


3

Your script works for me (with the directories changed to directories that exist on my computers); I'm also using rsync 3.1.0 on Ubuntu 14.04. Note that --backup-dir is used to give a backup directory on the receiving end, so you probably want --backup-dir=/home/mcocdawc/PowerFolders/Molcas_project/.MIL53_backup instead.


3

The easiest way to automate this task would be the combination of MySQL Dumps and a cronjob. You can find a lot of information on this topic on this and other internet sites, but for the sake of completion: Create a mysqldump.sh file Which will contain the mysql dump command we will schedule in a cron job (replace user, password and path to match your ...


3

Custom fonts are usually in : /usr/local/share/fonts /usr/share/fonts ~/.local/share/fonts ~/.fonts To back them up copy the folder to your backup media. Example : cp /usr/local/share/fonts/ /media/backupdevice/


3

The most useful backup application I've seen is called Aptik - all you need is a backup directory, stored locally or in the cloud. Aptik will backup PPAs, downloaded packages, software selections, application settings and themes and icons. Very useful. You can install it through the ppa: sudo apt-add-repository –y ppa:teejee2008/ppa sudo apt-get update ...


3

go to the location and run the command cd /var/www/html tar cvf /home/jo/backup/testBackup.tar test



Only top voted, non community-wiki answers of a minimum length are eligible