On Linux, the Wine settings are stored within the ~/.wine folder. On this folder, any Home windows applications you put in on Linux, drivers, utilities and all the things else is accessible right here, so it’s a good suggestion to learn the way to make a backup of this listing. Making a back up of Wine settings could be achieved in just a few alternative ways. On this publish, I’ll be speaking about a few methods to go about it.

Back up Wine settings with cp

Do you know that you simply don’t have to compress and use a particular backup device to make a whole backup of Wine on Linux? It’s true! Because it seems, you want to make a full copy of the folder the place your whole Wine functions and settings go!

The quickest and easiest method to create a quick back up of Wine settings is to make use of the cp (copy) command. Right here’s the way it works. To begin, launch a terminal window and press Ctrl + Alt  + T or Ctrl + Shift + T on the keyboard. Then, use the ls command to reveal the hidden wine folder in /dwelling/.

ls

Find the ~/.wine folder. Then, rerun ls, on that folder to be certain that it’s empty, and your knowledge is in it.

2Q==

ls ~/.wine

Have a look at the print-out on display screen and make sure all the things is the place it needs to be. After that, use the cp command (with the r change) to make a whole copy of this listing. Make certain to change the second half of the command to the situation the place you’d like to make a whole copy of your Wine knowledge (just like the ~/Paperwork folder, for instance).

cp -r ~/.wine ~/Paperwork/wine-backup/

Working the cp command above goes to take a really very long time, particularly in case you have some massive Home windows’ applications or video video games on there. Simply be affected person, and let the copy command run via. When it’s achieved, open up your file supervisor to /dwelling/Paperwork/ and replica the “wine-backup” listing to an exterior exhausting drive, USB, and so forth.

Restore the backup

Want to restore your backup of the Wine folder on your Linux PC? Right here’s what to do. First, copy the “wine-backup” folder from wherever you’re holding it back to /dwelling/Paperwork/. Then, use the cp command to make a full copy of the house folder, restoring the backup.

cp -r ~/Paperwork/wine-backup/ ~/.wine

Like earlier than, please perceive that the restoration course of will take fairly a very long time. Sit and wait, and shortly your Wine recordsdata and folders can be back the place they need to be.

Back up Wine settings with Tar

The cp command can rapidly make a duplicate of a folder for the person to place some place else. Sadly, this backup methodology solely works for native recordsdata, and if you need to preserve your Wine backup on the web, it gained’t assist you in any respect.

An ideal different to the cp methodology is to take your Wine folder and create a TarGZ archive. Then, after it’s within the TarGZ file, it’ll be simple to add to companies like Dropbox, a P2P syncing device like SyncThing. It even makes it potential to encrypt the backup!

To begin the backup course of, launch a terminal window by urgent Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, use the tar command to compress your ~/.wine listing right into a TarGZ file.

tar -czvf wine-folder-backup.tar.gz ~/.wine 

Compressing all the Wine listing isn’t a speedy course of. It would take up to 45 minutes on the very least. The time it takes is predicted, as most individuals trying to make a back up of their Wine recordsdata have greater than a few applications and even some video games in there as effectively.

When the compression is completed, you will notice a sizeable TarGZ file in your house listing (~/) with the label of “wine-folder-backup.tar.gz.” Be at liberty to take this file and put it on Dropbox, Google Drive, an exterior USB, exhausting drive, and so forth.

Encrypt backup

Have delicate recordsdata in your Wine TarGZ backup you don’t need anybody to have entry to? In that case, think about using the GPG device to encrypt it.

To begin the encryption, launch a terminal and use the GPG device to encrypt your backup.

Word: don’t have GPG put in? Click on right here for extra data.

gpg -c wine-folder-backup.tar.gz

When GPG is completed encrypting, take wine-folder-backup.tar.gz.gpg and put it in a protected place.

Restore backup

To begin the restoration course of, take the “wine-folder-backup.tar.gz” file and place it on your PC into the “Documents” folder.

Word: in case you have to decrypt your backup first, run gpg wine-folder-backup.tar.gz.gpg.

Use the CD command to transfer the terminal the place the TarGZ backup file is.

cd ~/Paperwork

Subsequent, delete the outdated “Wine” folder, to be certain that the tar command doesn’t run into any points.

rm -rf ~/.wine

Lastly, restore the backup to the house folder by working:

tar -xzvf wine-folder-backup.tar.gz -C ~/ --strip-components=2



Source link

Share.
Leave A Reply

Exit mobile version