From a6a670f77faced3d4f490f987b4112e2e511b337 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Wed, 13 Mar 2019 03:11:47 -0700 Subject: [PATCH] Hierarchy: remove snapshot_dir attribute and add boot_dir attribute --- rbackup/hierarchy.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rbackup/hierarchy.py b/rbackup/hierarchy.py index a96894d..a133155 100644 --- a/rbackup/hierarchy.py +++ b/rbackup/hierarchy.py @@ -67,6 +67,14 @@ class Hierarchy: date = datetime.datetime.utcnow().isoformat() 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 def etc_dir(self): """Retrieve the /etc backup directory of this hierarchy. @@ -83,14 +91,6 @@ class Hierarchy: """ 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 def root_home_dir(self): """Retrieve root's home directory of this hierarchy.