Hot answers tagged backup
11
Sounds like a perfect task for rsync
sudo rsync -az /path_to/A /path_to/B
-a preserves the date and times
-z compresses the data
If you wish to remove files deleted in A from files in B, use the --delete option
For additional information see:
https://help.ubuntu.com/community/rsync
You can run rsync from cron
sudo crontab -e
Add in an ...
9
1. Using the Command-line tar
Yes, just give the full stored path of the file after the tarball name.
Example: suppose you want file etc/apt/sources.list from etc.tar:
tar -xf etc.tar etc/apt/sources.list
Will extract sources.list and create directories etc/apt under the current directory.
You can use the -t listing option instead of -x, maybe along ...
8
Use clonezilla.
It will allow you to clone your current system including the mbr without actually copying unused space that dd does hence doing it faster
Since its reading / writing on a filesystem level you can only use it on a supported filesystem, on the contrary to dd, which works on a device level, allowing the copy of any filesystem.
Clonezilla's ...
8
Try reinstalling the light-themes package, This package includes both default Ubuntu themes (Ambiance and Radiance).
Hit Alt+Ctrl+T to open terminal and run following commands:
sudo apt-get autoremove --purge light-themes
sudo apt-get install light-themes
Then restart your system!
8
There are several options that each have tradeoffs. You can not use dd to clone a filesystem while it is mounted read/write or the clone will end up corrupt since the source is being changed during the copy so the destination will be partially out of date and partially not. If you really want to be able to use dd to hot copy a partition, you can do so with ...
7
You can actually use Ubuntu Software centre for taking Screenshots as here
Also you can see it in Synaptic Bottom left list selections.
By cd /etc/apt/sources.list.d/ && cat *.list you will get list of all repositories in your system.
You can also you Y PPA manager to backup and update your repositories.
Second Method
[Since this method ...
6
Update Deja-dup to 24.x or latest release.
In later version of 23.x they have added integrity check feature.
Have a look this link. https://bugs.launchpad.net/deja-dup/+bug/1055356
After every backup, we make a small check to confirm we can restore a test file. And every two months, we make a more intensive check.
5
You could also use y-ppa-manager or you could use apt-clone to do that.
Here's a screenshot:
https://launchpad.net/y-ppa-manager
5
I have just restored a system, myself. I am a newbie to Ubuntu, but I have learned a lot and I am a fan of multi-partitions.
Backing up /etc; well I don't know, but having a record of 'fstab' is essential and during the re-installation, remembering to only format the / partition is also important. As a result of having a mount point at /home/my-namefor my ...
5
You should use a bootable tool like Clonezilla to easily back up the OEM install (as well as any recovery partitions) on the hard disk. Clonezilla understands NTFS, so it will only backup (and optionally compress) the actual amount of data.
Using a raw block-level tool such as dd, while possible, is not recommended because it will probably use much more ...
5
Ok, I think your trying to over architect a bit. SSH is one of the most secure file transfer protocols and if your already rsyncing over ssh then your 90% there. Your router is acting as a basic firewall so you shouldn't need to turn on iptables for a personal backup server.
Stick with port 22. It will make life much easier.
fail2ban is a nice script ...
4
First off, you should be aware that you can recover deleted files from Dropbox. Also, Dropbox keeps a version history of your files. So you don't need to worry about accidentally deleting files from your Dropbox folder.
Backing up to your Dropbox folder is easy. Just use any back up tool, and set the destination to your Dropbox folder.
Here's how to do ...
4
Wifi Passwords
So as a partial solution I can confirm that migration of network manager passwords for wifi connections was successful. The procedure for network-manager passwords is:
Stop network-manager: sudo service network-manager stop
Copy the necessary files in /etc/NetworkManager/ with: sudo cp -r ...
4
Are you able to physically connect both hard drives in the same machine? If so, great, the steps are easy. I'll outline each one, and you may ask for details for each if you are unsure about them.
1 - Connect the new drive, disconnect the old one. Install Windows from DVD as you would in a clean, fresh machine.
2 - Once Windows is installed and working ...
4
There actually is an Encfs "inverted" option. From the Encfs man page:
--reverse
Normally EncFS provides a plaintext view of data on demand. Normally it stores enciphered data and displays plaintext data. With --reverse it
takes as source plaintext data and produces enciphered data on-demand. This can be useful for creating remote ...
4
This is a partial-answer that might help the next person:
So far it seems that copying things to Google Drive/Docs is supported:
duplicity localdir gdocs://username:password@gmail.com/remotedir/
However this is different from Google Cloud Storage. I think this should be doable since duplicity and gsutil both use boto, but I'm not sure if this requires ...
4
As of August 2012, Duplicity does not support Google Cloud Storage (GCS); a search of the duplicity-talk mailing list archives shows that there has been no discussion, even at a wishlist stage, of adding such support.
Google Docs is supported, but that API is totally different from GCS.
Wishlist bug filed recently
While the Python boto module used as a ...
4
Ubuntu has changed since Evan Plaice's answer was accepted.
Keybindings have moved from gconf to dconf. Gconf stores its data in xml files and was accessed by gconf-editor and gconf-tool2. Dconf stores its data in a binary format and is accessed by dconf-editor and gsettings.
The number of places that keybindings are stored is reduced. There is now ...
4
Although this question has been answered for a while, I noticed that nobody mentioned etckeeper. Run apt-get install etckeeper, configure your VCS in /etc/etckeeper/etckeeper.conf, and you will from then on have much better control of your /etc directory. This can also be used to restore your configurations within the /etc directory.
For instance, (assuming ...
4
Great Question.
The "dump" and "restore" backup utilities in the Ubuntu repositories provide you with the ability to backup and recover an entire systems "system state".
The "dump" and "restore" utilities can be installed from the repositories using:
sudo apt-get install dump
Below are links the Man pages.
"Dump":
...
4
What is the correct command to create a snapshot of my home partition on Ubuntu 12.04?
Given the fact that home is on a btrfs partition and it is mounted as /home, the correct command is:
sudo btrfs subvolume snapshot /home/ /home/<any_name_you_choose_for_the_snapshot>
Here are my results:
Before running the command today:
btrfs subvolume list ...
4
I'd suggest using rsync for this purpose. Rsync is extremely fast, stable, and versatile. There's a good introduction at http://help.ubuntu.com/community/rsync
If you wish, there is an optional graphic front end: grsync
sudo rsync -azv --exclude 'dir1' /home/path/folderA/ /home/path/folderB
The command above will copy from folderA to folderB ...
4
I always found Unison to be very helpful. It has a text based or GUI based interface, and quite a few different options to tweak it to what you want (with a little fiddling). It takes quite a bit of time to do the first sync, but after that it's brilliant. You can make it sync one-way, as you want, but it will pretty much get that automatically. It can ...
4
You need to specify what directory's you want to backup. Make sure you back up your home directory and etc. This will hopefully cover all your config files and then personal files and documents in your home.
In BackupYourSystem on help.ubuntu.com you find the Ubuntu backup page. It contains lots of information on backups and the different software ...
3
Install the apt-btrfs-snapshot package, and use its subcommands list, snapshot, delete and set-default.
This is a script that wraps the lower level btrfs commands. It works by first mounting the btrfs root filesystem somewhere. By that I mean the real root, as opposed to the /@ subvolume that is normally mounted as /. In other words, you need to run ...
3
If you're on a server without a GUI, here's a package that will backup and rotate all of your MySQL databases daily by default.
sudo apt-get install automysqlbackup
That's it. The default configuration is sane so you're done unless you need something special. The backup files will be placed in /var/lib/automysqlbackup which you should rsync somewhere ...
3
Even though Javier Rivera's answer works, it still takes way too long for rsync to check and compare all file checksums. I found that using the following option worked far better for me:
$ rsync -rtv --modify-window=1 /source /dest
The --modify-window=1 option allows for a variance of ±1s on the timestamps, which makes the file comparison far more ...
3
Ok first things first:
The name of the subvolume you are looking at is @home as shown by btrfs subvolume list /home. It's mounted in /home. @home is the name of the subvolume also it has the ID 256 so most likely only your /home is formated as btrfs.
Now to create a snapshot of @home you have to issue:
sudo btrfs subvolume snapshot /home/ ...
3
apt-mark showmanual will give you a list of "manually installed" packages. This includes packages installed by the installer, which is most of them. But if you run this after installation and compare the output again later, you'll get a list of packages which the user has specifically requested, excluding automatically installed dependencies.
For example:
...
3
I'd use Gparted.
start from your Gparted LiveCD or LiveUSB (using Lily)
Plug in both of your HD (old and new one)
select partitions on the old disk and "COPY" it on the new disk
Resize partitions on your new disk according to your willing
Start from Ubuntu liveCD/liveUSB
Use blkid to check the UUID of the partitions on the new disk
Edit your /etc/fstab ...
Only top voted, non community-wiki answers of a minimum length are eligible


