-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup_activation.sh
26 lines (18 loc) · 1.19 KB
/
backup_activation.sh
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
# This file is part of the 64-bit ramdisk tool by meowcat454
echo "Backing up activation files from device..."
echo "To use this script, the device must have the ramdisk loaded and have the data partition (/mnt2) mounted."
sleep 1
[ -d activation ] || mkdir activation
echo "Backing up IC-Info.sisv..."
scp -P 2222 root@localhost:/mnt2/mobile/Library/FairPlay/iTunes_Control/iTunes/IC-Info.sisv activation/
echo "Backing up activation_record.plist..."
scp -P 2222 root@localhost:/mnt2/containers/Data/System/*/Library/activation_records/activation_record.plist activation/
echo "Backing up data_ark.plist..."
scp -P 2222 root@localhost:/mnt2/containers/Data/System/*/Library/internal/data_ark.plist activation/
echo "Backing up com.apple.commcenter.device_specific_nobackup.plist..."
scp -P 2222 root@localhost:/mnt2/wireless/Library/Preferences/com.apple.commcenter.device_specific_nobackup.plist activation/
if [ -f "activation/IC-Info.sisv" ] && [ -f "activation/activation_record.plist" ] && [ -f "activation/data_ark.plist" ] && [ -f "activation/com.apple.commcenter.device_specific_nobackup.plist" ]; then
echo "All files were backed up!"
else
echo "There was an error backing up one or more files!"
fi