You are not logged in.
Pages: 1
I've configured my Arch setup to its best in terms of both performance and usability. I am really liking it and want to keep a back up of this installation. From backup I mean to keep track of all the tools I have installed and the confugurations like my console fonts, workspaces settings etc...
One option is to make a custom shell script. This will be very hectic and unmanagable. I might forget some configuration etc. to save. I believe there must be some tool to backup whole installation.
PS: There is something as Ghost backup. But I am not looking onto that, because It will backup current disk as it is. Which won't be useful if am restoring after say 1 yr. When lot of packages would have been updated or outdated. Instead I am looking something like a script, which will turn a fresh Arch installation into a full configured system pulling latest packages.
Last edited by mangatmodi (2013-04-29 10:30:32)
Offline
RSYNC is the best and most versatile tool. I've had to restore Linux Mint system twice from rsync and glad i had rsync backup, now will set it up for Arch as i am migrating to Arch as we speak. it is script, but you choose when to run it and what gets backed up (i do the whole system).
Last edited by WFV (2013-04-28 07:29:53)
∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞
Offline
@WFV
As I understand, rsync will backup only my files. what about the tools I have installed? Plus I may not remember to sync each and every configuration file there is. Sometimes there is also an order to configure files. For example you need to configure network files first to configure other tools like pacman etc. I need to automate building a fresh installation of Arch.
Offline
I'm rather confused about what you're asking... Actually, you technically haven't asked a question yet. (No question mark!
)
Do you want a piece of software that will record something about your configuration periodically and is able to install Arch Linux and configure it exactly like how you have it right now? What do you mean by your "tools"? Do you mean software packages?
Offline
I don't know of any tool that does this automatically, but I myself just keep backups of all the files that isn't vanilla i.e. which i've made changes to, like dot-files and other configs in /etc and such. I backup them onto my free dropbox account, so that I can get to the files from anywhere with it's public links afterwards.
Then I have made a script that makes a clean install and then also downloads and places back all the custom files of my system, so everything will be back to where it used to be before...
It takes maybe alittle time to make such a script, but imho it's very nice to have, so that you know that if something completelly breaks, then you can easilly recover without much effort other than booting from the Arch LiveCD, wget'ing your custom install/setup script from dropbox and then fire it up with 'bash ./setup' and then you're all god.
Just use a VM to test the script out so as to narrow down on possible issues and troubleshoot them...
Btw, if using dropbox to store config-files and such, then there's a nice bash-script named dropbox-uploader.sh, which lets you upload/download files to/from dropbox from a terminal and without the need of having to install/use the dropbox daemon...
You can e.g. also make another script which backs up your changed configs to e.g. dropbox, and then add the script as a cron-job so as to automate the backup operation...
Offline
@drcouzelis
Yes you are right. I am searching for an application which could read my current Arch setup, including my installed packages, configuration, prefrences and make an install script. Which I could run on a fresh installation and turn it into the current one I am using. Is there any such tool? ( Question mark B-))
@mhertz
A custom script will be very hard and untidy. I could forget to import lot of configurations. Its the last option that I will opt.
Offline
Any info about the Puppet? Will it serve my purpose?
Last edited by mangatmodi (2013-04-28 16:50:56)
Offline
mangatmodi: I received your report, but do not understand your request. If you still require moderator assistance, can you elaborate?
Thanks.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
@ewaller,
If you see above, My post is edited. I posted reply of some other thread to this one by mistake. However after requesting your assistance, I edited the post to ask a question relevant to the thread.
Pardon me for this carelessness.
Offline
Puppet is good for building nodes in a cluster, it could be used as you describe, but you'll need a puppet master (a separate server to push the config out), and you'll need some way of pushing a minimal image out to the PC when it needs rebuilding (we use the razor module where I work). I don't think it's what you need, it's a bit overkill.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
@WorMzy
oh! I was also feeling that. Taking backup of a configuration seems to be a very general and obvious problem. It's weird that no trivial solution exists for desktops
Offline
So, this hypothetical program, I click a button, it does its magic, then in one year, I click another button, and WHAMMO!!! It's archlinux, just how I left it, with all the software updated, the configuration files all work, my desktop looks just the same...
Hang on, I'll knock up a script that does exactly what you want. Back in a couple of minutes.
You want a pony to go with that?
Offline
@darkbeanies
and what is wrong with it? It will be better if a user deals actual development rather than managing a development environment itself. It is not my laziness that I desire such program, It is a need of every developer. Surely I could make it all back but given the time constraint, It may not be practical. Backup is always handy and full of wisdom.
I never denied from writing my own script. I just want to know any alternative, if there is any. What is the point of re-inventing the wheel every time? and if there is no such system I'll do what it takes to do manually. Its just I believe there must be something in open source...
Last edited by mangatmodi (2013-04-28 22:17:11)
Offline
This is not as trivial as you seem to imagine. You would need to keep your backup current by updating it after relevant system upgrades. That will be non-trivial since you want to maintain the original configuration. But if, for example, a configuration changes, that would need to be accounted for. If a package is replaced by another, that will need to be accounted for. The config files you have now will not work with a fresh install in 12 months time. (At least, probably not.)
So I don't really see how you expect the programme you imagine must exist to work.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
@cfr @everyone
After extensive searching over all forums I could say that such system really don't exist. The solution is not trivial and it is very hard to find some time invariant solution to the problem. But the problem is trivial and is very common for every developer. The closest I could find is Blueprint. I am half expecting it to fail though. I will give it a try and write my experience with it.
For now, based on all other replies and my searching I am marking this thread as solved (not exactly solved but atleast got some leads.)
Offline
@mangatmodi -- absolutely nothing wrong with it, or laziness for that matter. I wish that such a program did exist, I'd definitely be using it, because I'm all for saving time and doing things the easy way.
Sadly, that Blueprint thing says it only works on debian and redhat. Probably because they don't upgrade their packages as often. You'd probably be lucky if your configuration files all worked next month with archlinux, let alone next year.
Offline
Well, I guess you can't avoid writing a little script, but don't think it'd be as difficult as you say. You can get the currently installed packages via pacman, backup /etc and /home/user/.* via rsnapshot. Make a cronjob so you can't forget it and your done more or less.
Of course this does not solve the problem with outdated config files, but then again regular backups are a good idea anyway. ![]()
Offline
@darkbeanies
yeah! checked it later. Blueprint is a goner ![]()
Found this one - Vagrant. It seems to support Arch linux too. However later versions don't have any Arch support.
@ponder
seems like a script, or may be just a read me file with backups, would be be simpler and better at this moment. Installing and learning all these tools are a real overkill
Offline
@ mangatmodi
i don't know, sorry
∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞
Offline
Pages: 1