Which files do I need to backup to keep my Linux user settings?
up vote
13
down vote
favorite
I need to accomplish a clean install after a bad graphics driver issue.
Which are the files I must backup to keep all users settings in Linux?
My distro is fuduntu.
linux backup fedora
add a comment |
up vote
13
down vote
favorite
I need to accomplish a clean install after a bad graphics driver issue.
Which are the files I must backup to keep all users settings in Linux?
My distro is fuduntu.
linux backup fedora
1
I edited your question, if you are unhappy with the changes you can revert or edit again.
– Baarn
Jun 18 '12 at 19:01
3
Basically you need to backup your/home
directory, but depending on your usage or installations it would help to backup/etc
/usr
and/var
. But chances are that you copy a bad config file over to the fresh system. I'd recommend to fix the problem instead of doing a clean install.
– Baarn
Jun 18 '12 at 19:03
I had tryed [code] yum history -undo <few last installs id> [code] but it didn't help me. Also boouting with different vga modes "vga=ask" is helpless. Just terminal is accesible. So i can rm or copy or made other files operations. It freeze in boot a graphical shell gnome.
– Yurij73
Jun 18 '12 at 19:15
1
@Yurij73: You can surround code with ` and ` (backquote) in comments and answers.
– Linuxios
Jun 19 '12 at 13:54
add a comment |
up vote
13
down vote
favorite
up vote
13
down vote
favorite
I need to accomplish a clean install after a bad graphics driver issue.
Which are the files I must backup to keep all users settings in Linux?
My distro is fuduntu.
linux backup fedora
I need to accomplish a clean install after a bad graphics driver issue.
Which are the files I must backup to keep all users settings in Linux?
My distro is fuduntu.
linux backup fedora
linux backup fedora
edited Jun 18 '12 at 19:03
slhck
158k47436461
158k47436461
asked Jun 18 '12 at 18:58
Yurij73
44011018
44011018
1
I edited your question, if you are unhappy with the changes you can revert or edit again.
– Baarn
Jun 18 '12 at 19:01
3
Basically you need to backup your/home
directory, but depending on your usage or installations it would help to backup/etc
/usr
and/var
. But chances are that you copy a bad config file over to the fresh system. I'd recommend to fix the problem instead of doing a clean install.
– Baarn
Jun 18 '12 at 19:03
I had tryed [code] yum history -undo <few last installs id> [code] but it didn't help me. Also boouting with different vga modes "vga=ask" is helpless. Just terminal is accesible. So i can rm or copy or made other files operations. It freeze in boot a graphical shell gnome.
– Yurij73
Jun 18 '12 at 19:15
1
@Yurij73: You can surround code with ` and ` (backquote) in comments and answers.
– Linuxios
Jun 19 '12 at 13:54
add a comment |
1
I edited your question, if you are unhappy with the changes you can revert or edit again.
– Baarn
Jun 18 '12 at 19:01
3
Basically you need to backup your/home
directory, but depending on your usage or installations it would help to backup/etc
/usr
and/var
. But chances are that you copy a bad config file over to the fresh system. I'd recommend to fix the problem instead of doing a clean install.
– Baarn
Jun 18 '12 at 19:03
I had tryed [code] yum history -undo <few last installs id> [code] but it didn't help me. Also boouting with different vga modes "vga=ask" is helpless. Just terminal is accesible. So i can rm or copy or made other files operations. It freeze in boot a graphical shell gnome.
– Yurij73
Jun 18 '12 at 19:15
1
@Yurij73: You can surround code with ` and ` (backquote) in comments and answers.
– Linuxios
Jun 19 '12 at 13:54
1
1
I edited your question, if you are unhappy with the changes you can revert or edit again.
– Baarn
Jun 18 '12 at 19:01
I edited your question, if you are unhappy with the changes you can revert or edit again.
– Baarn
Jun 18 '12 at 19:01
3
3
Basically you need to backup your
/home
directory, but depending on your usage or installations it would help to backup /etc
/usr
and /var
. But chances are that you copy a bad config file over to the fresh system. I'd recommend to fix the problem instead of doing a clean install.– Baarn
Jun 18 '12 at 19:03
Basically you need to backup your
/home
directory, but depending on your usage or installations it would help to backup /etc
/usr
and /var
. But chances are that you copy a bad config file over to the fresh system. I'd recommend to fix the problem instead of doing a clean install.– Baarn
Jun 18 '12 at 19:03
I had tryed [code] yum history -undo <few last installs id> [code] but it didn't help me. Also boouting with different vga modes "vga=ask" is helpless. Just terminal is accesible. So i can rm or copy or made other files operations. It freeze in boot a graphical shell gnome.
– Yurij73
Jun 18 '12 at 19:15
I had tryed [code] yum history -undo <few last installs id> [code] but it didn't help me. Also boouting with different vga modes "vga=ask" is helpless. Just terminal is accesible. So i can rm or copy or made other files operations. It freeze in boot a graphical shell gnome.
– Yurij73
Jun 18 '12 at 19:15
1
1
@Yurij73: You can surround code with ` and ` (backquote) in comments and answers.
– Linuxios
Jun 19 '12 at 13:54
@Yurij73: You can surround code with ` and ` (backquote) in comments and answers.
– Linuxios
Jun 19 '12 at 13:54
add a comment |
1 Answer
1
active
oldest
votes
up vote
11
down vote
The bare minimum would be to keep the user's own files within /home
. Also, in order to know which files to keep from /etc
it is beneficial to use a system like etckeeper
that can track history of changes to /etc
and who made them. IE - were they distribution changes, or changes that you made?
For the back up itself, I always copy the following:
/usr/local
/usr/share
/home
/var
/etc
/root
There are ways to back these up using Rsync to a separate area, using hardlinks so that additional space is not used on subsequent backups.
You can then restore /home/*
as is, but you will want to pick specific files/folders as needed from /var
and /etc
. You will know if you need something specific from /usr/local
, because most likely you will have put it there purposely.
The contents of /var
and /usr/share
can be tricky. Apache, mediawiki, wordpress, and various other services store data in either. You should know if you have any data stored in these by the configuration you did when you set up these services. If you don't run any 'server' or 'web' services, you may be safe not backing these up, but it's always wiser to backup than to wish you had backed up.
Unless you have hand-edited things in /etc
you probably are safe with a clean config. If you do have hand-made-changes in /etc
, it is best to port them over by hand so you know exactly what you are introducing to the clean system.
/opt
may also be a directory of concern. It is usually created when installing software distributed with it's own installer from software outside of your distribution. Backing up this is an option, but you may want to re-install those packages - as they have configurations that require links back into /etc
1
im assuming by/user
you mean/home/[username]
, although it sounds like you were trying to say/usr
and added a letter. migh want to edit to clarify this
– DeveloperACE
Nov 20 at 20:27
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
11
down vote
The bare minimum would be to keep the user's own files within /home
. Also, in order to know which files to keep from /etc
it is beneficial to use a system like etckeeper
that can track history of changes to /etc
and who made them. IE - were they distribution changes, or changes that you made?
For the back up itself, I always copy the following:
/usr/local
/usr/share
/home
/var
/etc
/root
There are ways to back these up using Rsync to a separate area, using hardlinks so that additional space is not used on subsequent backups.
You can then restore /home/*
as is, but you will want to pick specific files/folders as needed from /var
and /etc
. You will know if you need something specific from /usr/local
, because most likely you will have put it there purposely.
The contents of /var
and /usr/share
can be tricky. Apache, mediawiki, wordpress, and various other services store data in either. You should know if you have any data stored in these by the configuration you did when you set up these services. If you don't run any 'server' or 'web' services, you may be safe not backing these up, but it's always wiser to backup than to wish you had backed up.
Unless you have hand-edited things in /etc
you probably are safe with a clean config. If you do have hand-made-changes in /etc
, it is best to port them over by hand so you know exactly what you are introducing to the clean system.
/opt
may also be a directory of concern. It is usually created when installing software distributed with it's own installer from software outside of your distribution. Backing up this is an option, but you may want to re-install those packages - as they have configurations that require links back into /etc
1
im assuming by/user
you mean/home/[username]
, although it sounds like you were trying to say/usr
and added a letter. migh want to edit to clarify this
– DeveloperACE
Nov 20 at 20:27
add a comment |
up vote
11
down vote
The bare minimum would be to keep the user's own files within /home
. Also, in order to know which files to keep from /etc
it is beneficial to use a system like etckeeper
that can track history of changes to /etc
and who made them. IE - were they distribution changes, or changes that you made?
For the back up itself, I always copy the following:
/usr/local
/usr/share
/home
/var
/etc
/root
There are ways to back these up using Rsync to a separate area, using hardlinks so that additional space is not used on subsequent backups.
You can then restore /home/*
as is, but you will want to pick specific files/folders as needed from /var
and /etc
. You will know if you need something specific from /usr/local
, because most likely you will have put it there purposely.
The contents of /var
and /usr/share
can be tricky. Apache, mediawiki, wordpress, and various other services store data in either. You should know if you have any data stored in these by the configuration you did when you set up these services. If you don't run any 'server' or 'web' services, you may be safe not backing these up, but it's always wiser to backup than to wish you had backed up.
Unless you have hand-edited things in /etc
you probably are safe with a clean config. If you do have hand-made-changes in /etc
, it is best to port them over by hand so you know exactly what you are introducing to the clean system.
/opt
may also be a directory of concern. It is usually created when installing software distributed with it's own installer from software outside of your distribution. Backing up this is an option, but you may want to re-install those packages - as they have configurations that require links back into /etc
1
im assuming by/user
you mean/home/[username]
, although it sounds like you were trying to say/usr
and added a letter. migh want to edit to clarify this
– DeveloperACE
Nov 20 at 20:27
add a comment |
up vote
11
down vote
up vote
11
down vote
The bare minimum would be to keep the user's own files within /home
. Also, in order to know which files to keep from /etc
it is beneficial to use a system like etckeeper
that can track history of changes to /etc
and who made them. IE - were they distribution changes, or changes that you made?
For the back up itself, I always copy the following:
/usr/local
/usr/share
/home
/var
/etc
/root
There are ways to back these up using Rsync to a separate area, using hardlinks so that additional space is not used on subsequent backups.
You can then restore /home/*
as is, but you will want to pick specific files/folders as needed from /var
and /etc
. You will know if you need something specific from /usr/local
, because most likely you will have put it there purposely.
The contents of /var
and /usr/share
can be tricky. Apache, mediawiki, wordpress, and various other services store data in either. You should know if you have any data stored in these by the configuration you did when you set up these services. If you don't run any 'server' or 'web' services, you may be safe not backing these up, but it's always wiser to backup than to wish you had backed up.
Unless you have hand-edited things in /etc
you probably are safe with a clean config. If you do have hand-made-changes in /etc
, it is best to port them over by hand so you know exactly what you are introducing to the clean system.
/opt
may also be a directory of concern. It is usually created when installing software distributed with it's own installer from software outside of your distribution. Backing up this is an option, but you may want to re-install those packages - as they have configurations that require links back into /etc
The bare minimum would be to keep the user's own files within /home
. Also, in order to know which files to keep from /etc
it is beneficial to use a system like etckeeper
that can track history of changes to /etc
and who made them. IE - were they distribution changes, or changes that you made?
For the back up itself, I always copy the following:
/usr/local
/usr/share
/home
/var
/etc
/root
There are ways to back these up using Rsync to a separate area, using hardlinks so that additional space is not used on subsequent backups.
You can then restore /home/*
as is, but you will want to pick specific files/folders as needed from /var
and /etc
. You will know if you need something specific from /usr/local
, because most likely you will have put it there purposely.
The contents of /var
and /usr/share
can be tricky. Apache, mediawiki, wordpress, and various other services store data in either. You should know if you have any data stored in these by the configuration you did when you set up these services. If you don't run any 'server' or 'web' services, you may be safe not backing these up, but it's always wiser to backup than to wish you had backed up.
Unless you have hand-edited things in /etc
you probably are safe with a clean config. If you do have hand-made-changes in /etc
, it is best to port them over by hand so you know exactly what you are introducing to the clean system.
/opt
may also be a directory of concern. It is usually created when installing software distributed with it's own installer from software outside of your distribution. Backing up this is an option, but you may want to re-install those packages - as they have configurations that require links back into /etc
edited Nov 21 at 3:32
answered Jun 21 '12 at 0:54
glallen
1,7971022
1,7971022
1
im assuming by/user
you mean/home/[username]
, although it sounds like you were trying to say/usr
and added a letter. migh want to edit to clarify this
– DeveloperACE
Nov 20 at 20:27
add a comment |
1
im assuming by/user
you mean/home/[username]
, although it sounds like you were trying to say/usr
and added a letter. migh want to edit to clarify this
– DeveloperACE
Nov 20 at 20:27
1
1
im assuming by
/user
you mean /home/[username]
, although it sounds like you were trying to say /usr
and added a letter. migh want to edit to clarify this– DeveloperACE
Nov 20 at 20:27
im assuming by
/user
you mean /home/[username]
, although it sounds like you were trying to say /usr
and added a letter. migh want to edit to clarify this– DeveloperACE
Nov 20 at 20:27
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f438450%2fwhich-files-do-i-need-to-backup-to-keep-my-linux-user-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
1
I edited your question, if you are unhappy with the changes you can revert or edit again.
– Baarn
Jun 18 '12 at 19:01
3
Basically you need to backup your
/home
directory, but depending on your usage or installations it would help to backup/etc
/usr
and/var
. But chances are that you copy a bad config file over to the fresh system. I'd recommend to fix the problem instead of doing a clean install.– Baarn
Jun 18 '12 at 19:03
I had tryed [code] yum history -undo <few last installs id> [code] but it didn't help me. Also boouting with different vga modes "vga=ask" is helpless. Just terminal is accesible. So i can rm or copy or made other files operations. It freeze in boot a graphical shell gnome.
– Yurij73
Jun 18 '12 at 19:15
1
@Yurij73: You can surround code with ` and ` (backquote) in comments and answers.
– Linuxios
Jun 19 '12 at 13:54