improve exclusions
This commit is contained in:
parent
da84dd9907
commit
b0f018de5f
@ -12,10 +12,14 @@ import System.FilePath
|
||||
|
||||
|
||||
excluded :: [String]
|
||||
excluded = intersperse "--exclude"
|
||||
[ "/home/rnhmjoj/.cache/"
|
||||
, "/home/rnhmjoj/game/"
|
||||
, "/home/rnhmjoj/.config/mozilla/firefox/tay31tbe.default/lock"
|
||||
excluded = intersperse "--exclude-rx"
|
||||
[ "/home/rnhmjoj/game/"
|
||||
, "/home/rnhmjoj/\\.cache/"
|
||||
, "/mozilla/firefox/.+/.?lock"
|
||||
, "/mozilla/firefox/.+/datareporting/"
|
||||
, "/mozilla/firefox/.+/saved-telemetry-pings/"
|
||||
, "/mozilla/firefox/.+/gmp/"
|
||||
, "/unity3d/.+/.+/Unity/"
|
||||
]
|
||||
|
||||
|
||||
@ -35,7 +39,7 @@ findPath path = do
|
||||
backup :: String -> Segment ()
|
||||
backup name = do
|
||||
path <- findPath (name </> "latest")
|
||||
proc "bup" ("index" : path : "--exclude" : excluded)
|
||||
proc "bup" ("index" : path : "--exclude-rx" : excluded)
|
||||
bup "save" "-n" name path
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user