auto move `/data/log` files to sdcard? or link it? is there some way to automatically move /data/log files to sdcard? may be some application or shell script that we can run with a click of a button with super user mode on rooted device? or may be some application I cant find?

or may be that folder could be linked directly to sdcard? how safe is that?

reason: free up internal space (yes, I already have link2sd and almost everything is already at sdcard, less critical apps; the focus is /data/log)

device model: samsung galaxy Y
android: 2.3.6
If your device is rooted, you can try creating symbolic link from the folder to SD Card (this is essentially what Link2SD does to apps, with prettier interface) using the Terminal Emulator.

Helpful Commands (disclaimer: untested, use at your own risk, make sure you understand exactly what the commands does before running them)


Get root su
Copy the folder to sdcard cp -r /data/log/ /path/to/new/folder
remove the original folder rm -r /data/log/
Create symbolic link use ln -s /path/to/new/folder /data/log
Reboot and test. Until you reboot, old processes may still own a handle to the old files even though it had been removed from the filesystem.


Note though, /data/log generally should not use too much space, so moving this folder likely won't save too much space. If you have an unusually large log directory, you might want to investigate that instead of moving the log directory.