Returns the files changed between two snapshots config Configuration name. num_pre first snapshot ID to compare. Default is last snapshot num_post last snapshot ID to compare. Default is 0 (current state) CLI Example: .. code-block:: bash
(config="root", num_pre=None, num_post=None)
| 685 | |
| 686 | |
| 687 | def changed_files(config="root", num_pre=None, num_post=None): |
| 688 | """ |
| 689 | Returns the files changed between two snapshots |
| 690 | |
| 691 | config |
| 692 | Configuration name. |
| 693 | |
| 694 | num_pre |
| 695 | first snapshot ID to compare. Default is last snapshot |
| 696 | |
| 697 | num_post |
| 698 | last snapshot ID to compare. Default is 0 (current state) |
| 699 | |
| 700 | CLI Example: |
| 701 | |
| 702 | .. code-block:: bash |
| 703 | |
| 704 | salt '*' snapper.changed_files |
| 705 | salt '*' snapper.changed_files num_pre=19 num_post=20 |
| 706 | """ |
| 707 | return status(config, num_pre, num_post).keys() |
| 708 | |
| 709 | |
| 710 | def undo(config="root", files=None, num_pre=None, num_post=None): |