aboutsummaryrefslogtreecommitdiff
path: root/doc/git-annex-expire.mdwn
blob: 8629036c0a73578f2a95ca59e1db9e0ea372c31e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# NAME

git-annex expire - expire inactive repositories

# SYNOPSIS

git annex expire `[repository:]time ...`

# DESCRIPTION

This command expires repositories that have not performed some activity
within a specified time period. A repository is expired by marking it as
dead. De-expiration is also done; if a dead repository performed some
activity recently, it is marked as semitrusted again.

This can be useful when it's not possible to keep track of the state
of repositories manually. For example, a distributed network of
repositories where nobody can directly access all the repositories to
check their status.

The repository can be specified using the name of a remote,
or the description or uuid of the repository. 

The time is in the form "60d" or "1y". A time of "never" will disable
expiration.

If a time is specified without a repository, it is used as the default
value for all repositories. Note that the current repository is never
expired.

# OPTIONS

* `--no-act`

  Print out what would be done, but not not actually expire or unexpire
  any repositories.

* `--activity=Name`

  Specify the activity that a repository must have performed to avoid being
  expired. The default is any activity.

  Currently, the only activity that can be performed to avoid expiration
  is `git annex fsck`. Note that fscking a remote updates the
  expiration of the remote repository, not the local repository.

  The first version of git-annex that recorded fsck activity was
  5.20150405.

# SEE ALSO

[[git-annex]](1)

[[git-annex-fsck]](1)

[[git-annex-schedule]](1)

[[git-annex-dead]](1)

[[git-annex-semitrust]](1)

# AUTHOR

Joey Hess <id@joeyh.name>

Warning: Automatically converted into a man page by mdwn2man. Edit with care.