1ecryptfs-rewrite-file(1)           eCryptfs           ecryptfs-rewrite-file(1)
2
3
4

NAME

6       ecryptfs-rewrite-file  -  force a file to be rewritten (reencrypted) in
7       the lower filesystem
8
9

SYNOPSIS

11       ecryptfs-rewrite-file [file1] [file2] [file3] ...
12
13

DESCRIPTION

15       This script takes one or more files/directories/symlinks as  arguments,
16       moves each of them to a temporary file, and then moves them back to the
17       original name.  This causes the file to be rewritten (and  reencrypted)
18       in the lower filesystem.
19
20       This  script  may  be  combined with find(1) and xargs(1) to rewrite an
21       entire eCryptfs mountpoint, unmount, and sync:
22
23         find . -xdev -print0 | xargs -r -0 /usr/bin/ecryptfs-rewrite-file
24         ecryptfs-umount-private
25         sync
26
27       It is advised that this script is executed in runlevel 1 or 3, to avoid
28       simultaneous writes and race conditions with targeted files.
29
30       USING  THIS  SCRIPT WHILE GNOME, KDE, OR OTHER APPLICATIONS ARE RUNNING
31       MAY CAUSE DATA LOSS.
32
33

SEE ALSO

35       find(1), xargs(1), ecryptfs-umount-private(1), sync(1)
36
37       http://ecryptfs.org/
38
39

AUTHOR

41       This manpage was written by Dustin Kirkland  <kirkland@ubuntu.com>  for
42       Ubuntu  systems  (but may be used by others).  Permission is granted to
43       copy, distribute and/or modify this document under the terms of the GNU
44       General Public License, Version 2 or any later version published by the
45       Free Software Foundation.
46
47       On Debian and Ubuntu systems, the complete text of the GNU General Pub‐
48       lic License can be found in /usr/share/common-licenses/GPL.
49
50
51
52ecryptfs-utils                    2009-03-20          ecryptfs-rewrite-file(1)
Impressum