[DOCS] Revert files via the internal History

How-to guides, frequently asked questions, not-so-obvious features, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22898
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[DOCS] Revert files via the internal History

Post by rednoah »

FileBot maintains a persistent history of previous move / copy / link / etc operations so you can revert them later any time.


Revert files via the GUI

Click Icon Open HistorySelect Groups or ItemsIcon Revert Selection to revert selected files:
Screenshot


Revert files via the CLI

Revert the most recent group of files:

Shell: Select all

filebot -revert
Revert the given set of files and folders:

Shell: Select all

filebot -revert /path/to/files
Revert a selection of files:

Shell: Select all

filebot -revert --mode interactive
Screenshot

Print the internal history:

Shell: Select all

filebot -script fn:history
Clear the internal history:

Shell: Select all

filebot -clear-history
Revert files to their original names using xattr metadata instead of the internal history:

Shell: Select all

filebot -rename -r /path/to/files --db xattr --format "{original}"



Example Usage

Process files:

Console Output: Select all

$ filebot -rename *.mp4 --db TheMovieDB -non-strict --action HARDLINK --log INFO
[HARDLINK] from [Avatar.mp4] to [Avatar (2009).mp4]

View xattr metadata:

Console Output: Select all

$ filebot -mediainfo *.mp4 --db xattr --format "{f.name} | {original} | {type} | {id}"
Avatar (2009).mp4 | Avatar | Movie | 19995
Avatar.mp4 | Avatar | Movie | 19995

Revert files:

Console Output: Select all

$ filebot -revert
Revert [Avatar (2009).mp4] to [Avatar.mp4]

Confirm that the newly created hardlink has been deleted, and that xattr metadata has been removed:

Console Output: Select all

$ filebot -mediainfo *.mp4 --db xattr --format "{f.name} | {original} | {type} | {id}"
Avatar.mp4 |  |  | 
:idea: Please read the FAQ and How to Request Help.
Post Reply