Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup the libvirtd.conf and qemu.conf with timestamp #25

Open
paulbicheler opened this issue Aug 24, 2022 · 0 comments
Open

Backup the libvirtd.conf and qemu.conf with timestamp #25

paulbicheler opened this issue Aug 24, 2022 · 0 comments

Comments

@paulbicheler
Copy link

Running ./libvirt_configuration.sh backs up both files with the postfix _old. If you run the script twice then you're overwriting the original backup, overwrite the backup with the new version and delete it since the mv deleted it from the git working copy.

A cp would be better and the backup should have a timestamp appended to it to make sure its not erased.
Maybe something like this
mv /etc/libvirt/libvirtd.conf /etc/libvirt/libvirtd.conf.$(date+"%s").old
and
mv "mv /etc/libvirt/qemu.conf /etc/libvirt/qemu.conf.$(date+"%s").old"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant