-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb-in-ramdisk
65 lines (56 loc) · 2.71 KB
/
db-in-ramdisk
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
=============
Step 1: Download from Github: https://github.com/graysky2/anything-sync-daemon
Step 2: run "make" and "make install-systemd-all"
Step 3: Edit Config "sudo nano /etc/asd.conf", change path to your plex database folder
Step 3.5: Delete plex backup databases (optional - purpose to minimize ramdisk size)
Step 4: run "asd p" it should show sane data
Step 5: run "sudo systemctl enable asd && sudo systemctl start asd"
#
# /etc/asd.conf
#
# For documentation, refer to the asd man page
## WARNING Do NOT edit anything in this file while asd is running!
## To protect data from corruption, in the event that you do make an edit
## while asd is active, any changes made will be applied the next time
## you start-up asd.
# Define the target(s) directories in the WHATTOSYNC array.
# Do NOT define a file! These MUST be directories with an absolute path.
#
# Note that the target DIRECTORIES and all subdirs under them will be included.
# In other words, this is recursive.
#
# Below is an example to whet your appetite.
#WHATTOSYNC=('/srv/http' '/var/lib/monitorix' '/foo/bar')
WHATTOSYNC=('/opt/plex/Library/Application Support/Plex Media Server/Plug-in Support/Databases')
# Define where data will reside in tmpfs.
# This location must be mounted to tmpfs and MUST be writable and executable.
#
# If using bleachbit, do NOT invoke it with the '--clean system.tmp' switch or
# you will remove a key dot file (.foo) from /tmp that asd needs to keep track
# of sync status.
#
# Note that using a value of '/dev/shm' can cause problems with systemd's
# NAMESPACE spawning only when users enable the overlayfs option.
#
VOLATILE="/dev/shm"
# Uncomment and set to yes to use an overlayfs instead of a full copy to reduce
# the memory costs and to improve sync/unsync operations.
#
# You must modprobe either the 'overlayfs' or 'overlay' module prior to running asd if
# you enable this option. Distros running the linux kernel version >=3.18.0 are likely
# using the 'overlay' module while some distros shipping older kernels, notably Ubuntu
# provide the older version of this technology which is provided in the 'overlayfs'
# module not 'overlay' module.
USE_OVERLAYFS="yes"
# Uncomment and set to no to completely disable the crash recovery feature of asd.
#
# The default is to create crash recovery backups if the system is ungracefully
# powered-down due to a kernel panic, hitting the reset switch, battery going
# dead, etc. Some users keep very diligent backups and don't care to have this
# feature enabled.
USE_BACKUPS="yes"
# Uncomment and set to an integer that is the maximum number of crash recovery
# snapshots to keep (the oldest ones are delete first).
#
# The default is to save the most recent 5 crash recovery snapshots.
BACKUP_LIMIT=5