Upgrading Ubuntu to a newer version while keeping important files and settings
up vote
1
down vote
favorite
I use Ubuntu 10.04 for more than a year and I often feel that I need to reinstall it to newest version.
I'd like to take most of my configurations and important settings to the new system. I already have some files and directories in mind that I certainly want to backup, but I'm afraid I will forget something.
Is there some checklist, guideline or even software I can use to help me with backing up the important data? I don't want to backup the whole partition. (it's not so critical)
How can I cleanly update to a newer version?
backup dist-upgrade
add a comment |
up vote
1
down vote
favorite
I use Ubuntu 10.04 for more than a year and I often feel that I need to reinstall it to newest version.
I'd like to take most of my configurations and important settings to the new system. I already have some files and directories in mind that I certainly want to backup, but I'm afraid I will forget something.
Is there some checklist, guideline or even software I can use to help me with backing up the important data? I don't want to backup the whole partition. (it's not so critical)
How can I cleanly update to a newer version?
backup dist-upgrade
3
Why reinstall? Just upgrade!
– laebshade
Nov 19 '11 at 19:32
1
I'd like to clean the system a little and the upgrade is not directly possible to newest version 11.10.
– xralf
Nov 19 '11 at 19:59
Clean up your system a little but try not to think of it as necessary for linux desktops.
– laebshade
Nov 20 '11 at 5:34
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I use Ubuntu 10.04 for more than a year and I often feel that I need to reinstall it to newest version.
I'd like to take most of my configurations and important settings to the new system. I already have some files and directories in mind that I certainly want to backup, but I'm afraid I will forget something.
Is there some checklist, guideline or even software I can use to help me with backing up the important data? I don't want to backup the whole partition. (it's not so critical)
How can I cleanly update to a newer version?
backup dist-upgrade
I use Ubuntu 10.04 for more than a year and I often feel that I need to reinstall it to newest version.
I'd like to take most of my configurations and important settings to the new system. I already have some files and directories in mind that I certainly want to backup, but I'm afraid I will forget something.
Is there some checklist, guideline or even software I can use to help me with backing up the important data? I don't want to backup the whole partition. (it's not so critical)
How can I cleanly update to a newer version?
backup dist-upgrade
backup dist-upgrade
edited May 15 at 12:10
Nepumuk
5412
5412
asked Nov 19 '11 at 19:26
xralf
2,0581869118
2,0581869118
3
Why reinstall? Just upgrade!
– laebshade
Nov 19 '11 at 19:32
1
I'd like to clean the system a little and the upgrade is not directly possible to newest version 11.10.
– xralf
Nov 19 '11 at 19:59
Clean up your system a little but try not to think of it as necessary for linux desktops.
– laebshade
Nov 20 '11 at 5:34
add a comment |
3
Why reinstall? Just upgrade!
– laebshade
Nov 19 '11 at 19:32
1
I'd like to clean the system a little and the upgrade is not directly possible to newest version 11.10.
– xralf
Nov 19 '11 at 19:59
Clean up your system a little but try not to think of it as necessary for linux desktops.
– laebshade
Nov 20 '11 at 5:34
3
3
Why reinstall? Just upgrade!
– laebshade
Nov 19 '11 at 19:32
Why reinstall? Just upgrade!
– laebshade
Nov 19 '11 at 19:32
1
1
I'd like to clean the system a little and the upgrade is not directly possible to newest version 11.10.
– xralf
Nov 19 '11 at 19:59
I'd like to clean the system a little and the upgrade is not directly possible to newest version 11.10.
– xralf
Nov 19 '11 at 19:59
Clean up your system a little but try not to think of it as necessary for linux desktops.
– laebshade
Nov 20 '11 at 5:34
Clean up your system a little but try not to think of it as necessary for linux desktops.
– laebshade
Nov 20 '11 at 5:34
add a comment |
3 Answers
3
active
oldest
votes
up vote
2
down vote
accepted
As psusi correctly points out, you shouldn't need to reinstall a Debian derivative. Just upgrade.
Regardless, the obvious answer to the backup question is to use version control to back up your home directory and config settings. For the config files in /etc
on a Unix-like system, Joey Hess's etckeeper is popular. I'd recommend using a distributed version control system like Mercurial or Git, which can be used to periodically push the repository contents off your hard drive, and thus acts as an automatic backup. With Mercurial you can set up a
post-commit hook which will push after you commit, so your backups always stay completely up to date.
Note that this is not a general backup solution in this case, but works well for important config files and so forth, since they are general small text files, and therefore ideal for source control. And in this situation distributed version control is super-efficient, comparable in performance to rsync but better because of the atomicity of version control. Mercurial, at least, will roll back rather than push a partial changeset, and I imagine Git does the same. Also, version controlling your config files has obvious additional benefits.
add a comment |
up vote
1
down vote
You don't need to backup anything. Just install the new version and choose the option to upgrade the existing install. All of your files and settings will be preserved.
add a comment |
up vote
0
down vote
I'd recommend apt full-upgrade
or - if you like the more "back in those days" way - apt-get dist-upgrade
.
You can look at man apt
and man apt-get
for deeper information and more options.
For me, this totally works every time. You don't need to backup anything while it's way faster than backing up anything and re-setting up a whole system - even without all the costumization made over time. You also don't need to manually install afterwards all your packages your added over time to your system.
In my opinion, this is the most elegant way among the few and also the most efficient way indeed to "cleanly update to newer version" of a Distro with fixed releases (not rolling).
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f24965%2fupgrading-ubuntu-to-a-newer-version-while-keeping-important-files-and-settings%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
As psusi correctly points out, you shouldn't need to reinstall a Debian derivative. Just upgrade.
Regardless, the obvious answer to the backup question is to use version control to back up your home directory and config settings. For the config files in /etc
on a Unix-like system, Joey Hess's etckeeper is popular. I'd recommend using a distributed version control system like Mercurial or Git, which can be used to periodically push the repository contents off your hard drive, and thus acts as an automatic backup. With Mercurial you can set up a
post-commit hook which will push after you commit, so your backups always stay completely up to date.
Note that this is not a general backup solution in this case, but works well for important config files and so forth, since they are general small text files, and therefore ideal for source control. And in this situation distributed version control is super-efficient, comparable in performance to rsync but better because of the atomicity of version control. Mercurial, at least, will roll back rather than push a partial changeset, and I imagine Git does the same. Also, version controlling your config files has obvious additional benefits.
add a comment |
up vote
2
down vote
accepted
As psusi correctly points out, you shouldn't need to reinstall a Debian derivative. Just upgrade.
Regardless, the obvious answer to the backup question is to use version control to back up your home directory and config settings. For the config files in /etc
on a Unix-like system, Joey Hess's etckeeper is popular. I'd recommend using a distributed version control system like Mercurial or Git, which can be used to periodically push the repository contents off your hard drive, and thus acts as an automatic backup. With Mercurial you can set up a
post-commit hook which will push after you commit, so your backups always stay completely up to date.
Note that this is not a general backup solution in this case, but works well for important config files and so forth, since they are general small text files, and therefore ideal for source control. And in this situation distributed version control is super-efficient, comparable in performance to rsync but better because of the atomicity of version control. Mercurial, at least, will roll back rather than push a partial changeset, and I imagine Git does the same. Also, version controlling your config files has obvious additional benefits.
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
As psusi correctly points out, you shouldn't need to reinstall a Debian derivative. Just upgrade.
Regardless, the obvious answer to the backup question is to use version control to back up your home directory and config settings. For the config files in /etc
on a Unix-like system, Joey Hess's etckeeper is popular. I'd recommend using a distributed version control system like Mercurial or Git, which can be used to periodically push the repository contents off your hard drive, and thus acts as an automatic backup. With Mercurial you can set up a
post-commit hook which will push after you commit, so your backups always stay completely up to date.
Note that this is not a general backup solution in this case, but works well for important config files and so forth, since they are general small text files, and therefore ideal for source control. And in this situation distributed version control is super-efficient, comparable in performance to rsync but better because of the atomicity of version control. Mercurial, at least, will roll back rather than push a partial changeset, and I imagine Git does the same. Also, version controlling your config files has obvious additional benefits.
As psusi correctly points out, you shouldn't need to reinstall a Debian derivative. Just upgrade.
Regardless, the obvious answer to the backup question is to use version control to back up your home directory and config settings. For the config files in /etc
on a Unix-like system, Joey Hess's etckeeper is popular. I'd recommend using a distributed version control system like Mercurial or Git, which can be used to periodically push the repository contents off your hard drive, and thus acts as an automatic backup. With Mercurial you can set up a
post-commit hook which will push after you commit, so your backups always stay completely up to date.
Note that this is not a general backup solution in this case, but works well for important config files and so forth, since they are general small text files, and therefore ideal for source control. And in this situation distributed version control is super-efficient, comparable in performance to rsync but better because of the atomicity of version control. Mercurial, at least, will roll back rather than push a partial changeset, and I imagine Git does the same. Also, version controlling your config files has obvious additional benefits.
edited Apr 13 '17 at 12:36
Community♦
1
1
answered Nov 19 '11 at 21:46
Faheem Mitha
22.7k1880134
22.7k1880134
add a comment |
add a comment |
up vote
1
down vote
You don't need to backup anything. Just install the new version and choose the option to upgrade the existing install. All of your files and settings will be preserved.
add a comment |
up vote
1
down vote
You don't need to backup anything. Just install the new version and choose the option to upgrade the existing install. All of your files and settings will be preserved.
add a comment |
up vote
1
down vote
up vote
1
down vote
You don't need to backup anything. Just install the new version and choose the option to upgrade the existing install. All of your files and settings will be preserved.
You don't need to backup anything. Just install the new version and choose the option to upgrade the existing install. All of your files and settings will be preserved.
answered Nov 19 '11 at 20:52
psusi
13.5k22439
13.5k22439
add a comment |
add a comment |
up vote
0
down vote
I'd recommend apt full-upgrade
or - if you like the more "back in those days" way - apt-get dist-upgrade
.
You can look at man apt
and man apt-get
for deeper information and more options.
For me, this totally works every time. You don't need to backup anything while it's way faster than backing up anything and re-setting up a whole system - even without all the costumization made over time. You also don't need to manually install afterwards all your packages your added over time to your system.
In my opinion, this is the most elegant way among the few and also the most efficient way indeed to "cleanly update to newer version" of a Distro with fixed releases (not rolling).
add a comment |
up vote
0
down vote
I'd recommend apt full-upgrade
or - if you like the more "back in those days" way - apt-get dist-upgrade
.
You can look at man apt
and man apt-get
for deeper information and more options.
For me, this totally works every time. You don't need to backup anything while it's way faster than backing up anything and re-setting up a whole system - even without all the costumization made over time. You also don't need to manually install afterwards all your packages your added over time to your system.
In my opinion, this is the most elegant way among the few and also the most efficient way indeed to "cleanly update to newer version" of a Distro with fixed releases (not rolling).
add a comment |
up vote
0
down vote
up vote
0
down vote
I'd recommend apt full-upgrade
or - if you like the more "back in those days" way - apt-get dist-upgrade
.
You can look at man apt
and man apt-get
for deeper information and more options.
For me, this totally works every time. You don't need to backup anything while it's way faster than backing up anything and re-setting up a whole system - even without all the costumization made over time. You also don't need to manually install afterwards all your packages your added over time to your system.
In my opinion, this is the most elegant way among the few and also the most efficient way indeed to "cleanly update to newer version" of a Distro with fixed releases (not rolling).
I'd recommend apt full-upgrade
or - if you like the more "back in those days" way - apt-get dist-upgrade
.
You can look at man apt
and man apt-get
for deeper information and more options.
For me, this totally works every time. You don't need to backup anything while it's way faster than backing up anything and re-setting up a whole system - even without all the costumization made over time. You also don't need to manually install afterwards all your packages your added over time to your system.
In my opinion, this is the most elegant way among the few and also the most efficient way indeed to "cleanly update to newer version" of a Distro with fixed releases (not rolling).
edited yesterday
answered May 14 at 8:28
Nepumuk
5412
5412
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f24965%2fupgrading-ubuntu-to-a-newer-version-while-keeping-important-files-and-settings%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
Why reinstall? Just upgrade!
– laebshade
Nov 19 '11 at 19:32
1
I'd like to clean the system a little and the upgrade is not directly possible to newest version 11.10.
– xralf
Nov 19 '11 at 19:59
Clean up your system a little but try not to think of it as necessary for linux desktops.
– laebshade
Nov 20 '11 at 5:34