How can I collect all the configuration files I modified in a system?
Since the first installation of my system I modified various config files in /etc and I customised my system.
Copying the whole /etc for storage in a safe location before reinstalling/upgrading would slow down and potentially damage a new install, therefore how can I collect all and only the modified files?
configuration
New contributor
add a comment |
Since the first installation of my system I modified various config files in /etc and I customised my system.
Copying the whole /etc for storage in a safe location before reinstalling/upgrading would slow down and potentially damage a new install, therefore how can I collect all and only the modified files?
configuration
New contributor
1
Typically very hard to do properly. Looking at my own/etc
I see plenty of files that are fairly recent and that I didn't change myself (likely due to automatic updates and a few recent installs). Not mentioning things that are links to files outside of/etc
(like most/etc/systemd
services). Personally I keep a shadow of/etc
files I change (/etc/hosts
, for instance), so they get backed up with my stuff when I do backups. I can also edit them with my favorite graphical editor and justsudo cp
them when they are ready.
– xenoid
10 hours ago
1
@xenoid That sounds like a decent solution - maybe not what OP is looking for, but still a solution. Could you post it as an answer?
– wjandrea
9 hours ago
It looks like my question is answered partially in unix.stackexchange.com/questions/72746/… and in the links posted there -> there is no simple way to do what I asked
– FarO
9 hours ago
add a comment |
Since the first installation of my system I modified various config files in /etc and I customised my system.
Copying the whole /etc for storage in a safe location before reinstalling/upgrading would slow down and potentially damage a new install, therefore how can I collect all and only the modified files?
configuration
New contributor
Since the first installation of my system I modified various config files in /etc and I customised my system.
Copying the whole /etc for storage in a safe location before reinstalling/upgrading would slow down and potentially damage a new install, therefore how can I collect all and only the modified files?
configuration
configuration
New contributor
New contributor
New contributor
asked 10 hours ago
FarOFarO
1061
1061
New contributor
New contributor
1
Typically very hard to do properly. Looking at my own/etc
I see plenty of files that are fairly recent and that I didn't change myself (likely due to automatic updates and a few recent installs). Not mentioning things that are links to files outside of/etc
(like most/etc/systemd
services). Personally I keep a shadow of/etc
files I change (/etc/hosts
, for instance), so they get backed up with my stuff when I do backups. I can also edit them with my favorite graphical editor and justsudo cp
them when they are ready.
– xenoid
10 hours ago
1
@xenoid That sounds like a decent solution - maybe not what OP is looking for, but still a solution. Could you post it as an answer?
– wjandrea
9 hours ago
It looks like my question is answered partially in unix.stackexchange.com/questions/72746/… and in the links posted there -> there is no simple way to do what I asked
– FarO
9 hours ago
add a comment |
1
Typically very hard to do properly. Looking at my own/etc
I see plenty of files that are fairly recent and that I didn't change myself (likely due to automatic updates and a few recent installs). Not mentioning things that are links to files outside of/etc
(like most/etc/systemd
services). Personally I keep a shadow of/etc
files I change (/etc/hosts
, for instance), so they get backed up with my stuff when I do backups. I can also edit them with my favorite graphical editor and justsudo cp
them when they are ready.
– xenoid
10 hours ago
1
@xenoid That sounds like a decent solution - maybe not what OP is looking for, but still a solution. Could you post it as an answer?
– wjandrea
9 hours ago
It looks like my question is answered partially in unix.stackexchange.com/questions/72746/… and in the links posted there -> there is no simple way to do what I asked
– FarO
9 hours ago
1
1
Typically very hard to do properly. Looking at my own
/etc
I see plenty of files that are fairly recent and that I didn't change myself (likely due to automatic updates and a few recent installs). Not mentioning things that are links to files outside of /etc
(like most /etc/systemd
services). Personally I keep a shadow of /etc
files I change (/etc/hosts
, for instance), so they get backed up with my stuff when I do backups. I can also edit them with my favorite graphical editor and just sudo cp
them when they are ready.– xenoid
10 hours ago
Typically very hard to do properly. Looking at my own
/etc
I see plenty of files that are fairly recent and that I didn't change myself (likely due to automatic updates and a few recent installs). Not mentioning things that are links to files outside of /etc
(like most /etc/systemd
services). Personally I keep a shadow of /etc
files I change (/etc/hosts
, for instance), so they get backed up with my stuff when I do backups. I can also edit them with my favorite graphical editor and just sudo cp
them when they are ready.– xenoid
10 hours ago
1
1
@xenoid That sounds like a decent solution - maybe not what OP is looking for, but still a solution. Could you post it as an answer?
– wjandrea
9 hours ago
@xenoid That sounds like a decent solution - maybe not what OP is looking for, but still a solution. Could you post it as an answer?
– wjandrea
9 hours ago
It looks like my question is answered partially in unix.stackexchange.com/questions/72746/… and in the links posted there -> there is no simple way to do what I asked
– FarO
9 hours ago
It looks like my question is answered partially in unix.stackexchange.com/questions/72746/… and in the links posted there -> there is no simple way to do what I asked
– FarO
9 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
FarO is a new contributor. Be nice, and check out our Code of Conduct.
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%2faskubuntu.com%2fquestions%2f1117405%2fhow-can-i-collect-all-the-configuration-files-i-modified-in-a-system%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
FarO is a new contributor. Be nice, and check out our Code of Conduct.
FarO is a new contributor. Be nice, and check out our Code of Conduct.
FarO is a new contributor. Be nice, and check out our Code of Conduct.
FarO is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1117405%2fhow-can-i-collect-all-the-configuration-files-i-modified-in-a-system%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
Typically very hard to do properly. Looking at my own
/etc
I see plenty of files that are fairly recent and that I didn't change myself (likely due to automatic updates and a few recent installs). Not mentioning things that are links to files outside of/etc
(like most/etc/systemd
services). Personally I keep a shadow of/etc
files I change (/etc/hosts
, for instance), so they get backed up with my stuff when I do backups. I can also edit them with my favorite graphical editor and justsudo cp
them when they are ready.– xenoid
10 hours ago
1
@xenoid That sounds like a decent solution - maybe not what OP is looking for, but still a solution. Could you post it as an answer?
– wjandrea
9 hours ago
It looks like my question is answered partially in unix.stackexchange.com/questions/72746/… and in the links posted there -> there is no simple way to do what I asked
– FarO
9 hours ago