matrix/README.md

19 lines
462 B
Markdown
Raw Permalink Normal View History

2018-06-23 11:03:46 +02:00
# matrix
Matrix is a small program that saves permissions on directory to a file and can restore it on another directory (or another machine)
2020-02-25 21:20:14 +01:00
![alt text](https://www.lepoint.fr/images/2017/10/27/10978762lpw-10979123-article-jpg_4669854.jpg "Matrix")
2018-07-01 17:57:00 +02:00
2018-06-23 11:07:33 +02:00
## Usage
2018-06-23 11:03:46 +02:00
Backup file permissions of /etc on /tmp/backup.txt
2018-06-23 11:07:33 +02:00
2018-07-01 17:57:00 +02:00
```
2018-06-23 11:07:33 +02:00
matrix.py backup /tmp/backup.txt /etc
2018-07-01 17:57:00 +02:00
```
2018-06-23 11:03:46 +02:00
Restore file permissions on /etc based on backup.txt
2018-06-23 11:07:33 +02:00
2018-07-01 17:57:00 +02:00
```
2018-06-23 11:07:33 +02:00
matrix.py restore /tmp/backup.txt /etc
2018-07-01 17:57:00 +02:00
```