Hot answers tagged

18

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 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.


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 ...


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

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.


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

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(' '))


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

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

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

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 ...


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

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 ...


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

If you are ready to use CLI, the following command should work for you: diff --brief -r backup/ documents/ This will show you the files that are unique to each folder. If you want you can also ignore filename cases with the --ignore-file-name-case As an example: ron@ron:~/test$ ls backup/ file1 file2 file3 file4 file5 ron@ron:~/test$ ls documents/ ...


3

If I reinstall my desktop system, I backup /etc /var, I'm too lazy to exclude some sub-folders /opt /home is on a separate partition and has a backup made every day. After the reinstall, I restore the parts from my backup, which I really need. With this strategy, all my configurations, local mails and crontab configurations are safe and I have to ...


3

Well, I know that this is an old post, but I was just now able to fix this problem for myself, so I thought I will leave a comment here. When I tried to backup my data today, deja-dup almost completed the backup but finally during verification gave an error, saying that the data is corrupted and backup must be deleted. In retrospect, I remembered that I had ...


3

This should be enough for your case: find . -name '*.txt' -ctime +7 | zip archive-$(date +%Y%U).zip -@ example: find . -name '*.txt' -ctime +7 | zip archive-$(date +%Y%U).zip -@ output: adding: a.txt (stored 0%) adding: b.txt (stored 0%) Now to make sure of naming: ls output is: archive-201525.zip a.txt b.txt c


3

The easiest way to copy all of your standard Ubuntu data files from the disk is to login to TTY1 and: Do a ls /dev/?d* Insert an external disk, and do another ls /dev/?d* Subtract the output from step 1 from the output from step 2 and you should be left with the device name of the external HDD. This should take the form of XdYN where X is s or h depending ...


3

It will work. Look at man rsync and the --update option. If you use -u it will totally skip files that have a newer timestamp on the destination. If you don't use -u it will checksum the files and sync them if there's a difference (there will be in your case). So don't use -u in your rsync invocation. Also, why not try to be empirical? Instead of just ...


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


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

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 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 ...



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