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

[sonic_installer] preserve the backup file/directories structure, attributes etc #410

Merged
merged 1 commit into from
Dec 12, 2018

Conversation

zhenggen-xu
Copy link
Collaborator

Signed-off-by: Zhenggen Xu zxu@linkedin.com

- What I did
preserve the file/directories structure, attributes etc during backup.

This is needed for example FRR configuration under /etc/sonic/frr might not be under root ownership. with the old backup method, the ownership etc will be lost.

- How I did it
use "cp -ar" instead of "cp -r"

- How to verify it
/etc/sonic/frr is under admin:admin, when it backed up, the structure and attributes were preserved.

-->

…ributes etc

Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
@lguohan lguohan merged commit fda7742 into sonic-net:master Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants