Hierarchy: remove snapshot_dir attribute and add boot_dir attribute
This commit is contained in:
		| @@ -67,6 +67,14 @@ class Hierarchy: | |||||||
|         date = datetime.datetime.utcnow().isoformat() |         date = datetime.datetime.utcnow().isoformat() | ||||||
|         return os.path.join(self.base_dir, date.replace(":", "-")) |         return os.path.join(self.base_dir, date.replace(":", "-")) | ||||||
|  |  | ||||||
|  |     @property | ||||||
|  |     def boot_dir(self): | ||||||
|  |         """Retrieve the /boot backup directory of this hierarchy. | ||||||
|  |  | ||||||
|  |         :rtype: str | ||||||
|  |         """ | ||||||
|  |         return os.path.join(self.curr_snapshot, "boot") | ||||||
|  |  | ||||||
|     @property |     @property | ||||||
|     def etc_dir(self): |     def etc_dir(self): | ||||||
|         """Retrieve the /etc backup directory of this hierarchy. |         """Retrieve the /etc backup directory of this hierarchy. | ||||||
| @@ -83,14 +91,6 @@ class Hierarchy: | |||||||
|         """ |         """ | ||||||
|         return os.path.join(self.curr_snapshot, "home") |         return os.path.join(self.curr_snapshot, "home") | ||||||
|  |  | ||||||
|     @property |  | ||||||
|     def snapshot_dir(self): |  | ||||||
|         """Retrieve the snapshot directory of this hierarchy. |  | ||||||
|  |  | ||||||
|         :rtype: str |  | ||||||
|         """ |  | ||||||
|         return os.path.join(self.curr_snapshot, "snapshots") |  | ||||||
|  |  | ||||||
|     @property |     @property | ||||||
|     def root_home_dir(self): |     def root_home_dir(self): | ||||||
|         """Retrieve root's home directory of this hierarchy. |         """Retrieve root's home directory of this hierarchy. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user