Anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

Quite a few people like and use profile-sync-daemon.  I have received several requests now asking for a more general version that will allow the flexibility of syncing anything from tmpfs <--> hdd and back again.  I just uploaded the first public release of anything-sync-daemon in response to the requests.  I am currently working on the wiki page, but I have already written a full manpage that is included with the util.  As with anything, BACKUP the data you wish to sync before using it.
What are some example directories you might want to sync to tmpfs?
/srv/http
/foo/bar
/var/lib/monitorix
AUR Package: https://aur.archlinux.org/packages.php?ID=58263
Wiki Page: https://wiki.archlinux.org/index.php/An … ync-daemon
Gitrepo if you just wanna browse the code (it is VERY simplistic): https://github.com/graysky2/anything-sync-daemon
Last edited by graysky (2012-09-22 15:00:04)

I'm having sort of troubles: it doesn't seem to mount anything into /shm...
I told it to keep sync'ed /var/log and my chromium config (yes i don't like to have 2 daemons running, doing the same thing).
So this is my asd.conf:
# /etc/asd.conf
# For documentation, see: https://wiki.archlinux.org/index.php/Anything-sync-daemon
# Define where data will reside in tmpfs
# Think hard about this if using utils like bleachbit as it has a nasty habbit
# of nuking files it identifies as junk in /tmp
# A safer location for things is actually /dev/shm
# This location must be mounted to tmpfs and MUST have permissions of 777
# Use NO trailing backslash!
TMPFS="/dev/shm"
# Define the target(s) directories in the WHATTOSYNC array
# Do NOT define a file! These MUST be directories!
# Note that the target directories and all subdirs under them will be included
# In other words, this is recursive
# Below is an example to wet your appetite
#WHATTOSYNC=('/var/log' '/srv/http' '/home/foo/bar')
WHATTOSYNC=('/var/log' '/home/federico/.config/chromium')
and this is my /etc/mtab:
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,noatime,user_xattr,acl,barrier=1,nodelalloc,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1027028k,nr_inodes=218985,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
run /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime,size=614400k 0 0
/var/tmp /var/tmp tmpfs rw,noatime,nodiratime 0 0
gvfs-fuse-daemon /home/federico/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
So, don't know where is the problem... my /var/log folder is 65Mb, but if i run df -h, then, this is its output:
File system Dim. Usati Dispon. Uso% Montato su
rootfs 231G 31G 189G 14% /
/dev/root 231G 31G 189G 14% /
devtmpfs 1003M 0 1003M 0% /dev
run 1004M 344K 1003M 1% /run
shm 1004M 152K 1003M 1% /dev/shm
tmpfs 600M 9,4M 591M 2% /tmp
/var/tmp 1004M 84K 1004M 1% /var/tmp
Thanks for the help!

Similar Messages

  • After upgrading to mountain lion i keep getting an error message saying my startup disc is full. it shouldnt be full because there is barely anything on there and i was running windows with bootcamp prior to this with no issues

    after upgrading to mountain lion i keep getting an error message saying my startup disc is full. it shouldnt be full because there is barely anything on there and i was running windows with bootcamp prior to this with no issues. my computer now freezes and programs close randomly. The usual command for opening windows with bootcamp doesnt work. once in restarted my computer after it froze and it rebooted in windows automatically. i really just want to know if there is a way to take the upgrade off my laptop because it is very annoying.

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • What's the proper protocol for a reset on my ipod touch 4g?  iOS 6 has totally jacked it up and it will no longer do anything but crash, and won't sync with itunes wirelessly or by cable.

    What's the proper protocol for a reset on my ipod touch 4g?  iOS 6 has totally jacked it up and it will no longer do anything but crash, and won't sync with itunes wirelessly or by cable.
    It's a 64G ipod touch and was fine till Apple told me to upgrade to ios 6.  Now most of my apps crash, my music won't play and I just get a white screen when I hit Music.
    When I try to sync to itunes it acts like it's going to sync and appears to recognize the ipod, but it's grayed out and has an update circle by it that spins for a while until itunes eventually freezes alltogether.  Is there a  way to go back to ios 5 after a erase and reset?

    iOS: Unable to update or restore

  • I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    Well... what IS the error message?
    Please read https://forums.adobe.com/thread/1499014
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • I try to restore my iphone but always error. it keep on recovery mode and i can't do anything., i try to restore my iphone but always error. it keep on recovery mode and i can't do anything.

    i try to restore my iphone but always error. it keep on recovery mode and i can't do anything., i try to restore my iphone but always error. it keep on recovery mode and i can't do anything.

    Hi, i had the same problem. Try to find the file "apple" or "itunes" don't know it anymore exactly. Ahm well you need to delet any information or just plug in your iphone into an other computer. important is that your iphone never has been pluged in this computer before. This was what i did, and it worked!

  • HT201398 I'm unable to re-install Whatsapp as the iTune Store keeps appearing the terms and condition, once i click the iTune Store. While on the term T&C page, there's no button for proceed. Cant do anything. Has anyone experienced it ?

    I'm unable to re-install Whatsapp as the iTune Store keeps appearing the terms and condition, once i click the iTune Store. While on the term T&C page, there's no button for proceed. Cant do anything. Has anyone experienced it ?

    Hi umawi,
    I understand that you are trying to reinstall an app from the App Store, but you are unable to accept the new Terms and Conditions for using the App Store. I have a few suggestions for you that may help you resolve this issue. First, I would like to recommend that you restart your iPhone and then see if the issue persists:
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    http://support.apple.com/en-us/HT201559
    If the issue is still present, try clearing the Safari History and Website Data, which is explained in the following article:
    Safari web settings on your iPhone, iPad, or iPod touch - Apple Support
    http://support.apple.com/en-us/HT201265
    To clear your history and cookies from Safari in iOS 8, tap Settings > Safari > Clear History and Website Data. In iOS 7 or earlier, tap Clear History and tap Clear Cookies and Data.
    If it is necessary to take the above step and clear Safari information, you may want to restart the phone again before checking to see if the issue is cleared. Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • HT1338 I have a macbook and I keep pressing software update and my computer version 10.5.8 and it says there are no updates anything I can do?

    I have a macbook and I keep pressing software update and my computer version 10.5.8 and it says there are no updates anything I can do?

    10.5.8 is the last release for OS X 10.5.
    If you want to upgrade your operating system, you have to buy it, and it's not available via download. The next upgrade for you would be to OS X Snow Leopard 10.6. In the US, call the Apple online store at 800-MY-APPLE and order 10.6 from the legacy products list. They will send you a DVD, which you can install, then use Software Update to get to the last release of 10.6.8.
    If you want to upgrade further, and your sytsem will support it, you can call the Apple online store again to buy Lion or you can connect to the App Store to buy and download Mountain Lion. If your system will support Lion or ML, you probably should have 4GB of memory for reasonable performance.

  • Since installing IOS7.0.2 my iPad keeps rebooting itself every few minutes.  I can't do anything with it and cannot download the new IOS7.2 because it doesn't run long enough to accomplish the download.  What can I do?

    Since installing IOS7.0.2 my iPad keeps rebooting itself every few minutes.  I can't do anything with it and cannot download the new IOS7.2 because it doesn't run long enough to accomplish the download.  What can I do?

    Try a Restart. 
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider. Press and hold the Sleep/Wake button until the Apple logo appears.
     Resetting your settings
    You can also try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. You won't lose any data, but it takes time to enter all of the settings again.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears. Apple recommends this only if you are unable to restart it.
    Or if this doesn't work and nobody else on the blog doesn't have a better idea you can contact Apple. 
    Here is a link to their contacts with most of the information below. 
    http://www.apple.com/contact/

  • I need to sync my iPhone to new user id on the same mac.  How do I keep my iPhone contacts and music library?  I tried to sync and iTunes wanted to erase both.

    I need to sync my iPhone to new user id on the same mac.  How do I keep my iPhone contacts and music library?  I tried to sync and iTunes wanted to erase both.

    When you say a new user ID, are you referring to your Apple ID that you use to make purchases in the iTunes Store, etc? Or are you talking about a new user account on the same Mac?
    iTunes alternatives
    http://www.wideanglesoftware.com/touchcopy/index.php
    http://www.ecamm.com/mac/phoneview/
    http://www.copytrans.net/

  • Hello, I'm using the same apple id on my Ipad and Iphone, and anything i do and my ipad reflects on my iphone. if i download an app on my iphone it also downloads on my ipad. Can i stop this from happening. i need help. thank you.

    hello, I'm using the same apple id on my Ipad and Iphone, and anything i do and my ipad reflects on my iphone. if i download an app on my iphone it also downloads on my ipad. Can i stop this from happening. i need help. thank you.

    Yes, under the Settings for the store, you can turn off the auto download for purchases, that way if you purchase an app on another device it will not automatically download on that device.  You would need to do this on both your iPad and iPhone.

  • I am trying to re-install Creative Suite 5.5 Design Standard on my Widows 7 Professional computer after I had to replace the hard drive. I keep getting error message and I get "Exit Code 15: Media DB Sync failed". I have run C Cleaner with same results. H

    I am trying to re-install Creative Suite 5.5 Design Standard on my Widows 7 Professional computer after I had to replace the hard drive. I keep getting error message and I get "Exit Code 15: Media DB Sync failed". I have run C Cleaner with same results. Have Disabled UAC and Startup items and Services with no success. Please help - frustrated to no end. Can someone help me?

    make sure you're using the adobe cleaner, not crap cleaner, Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    copy the installation files to a desktop folder and install from there.

  • I restored my iPod in the middle of a download, now it can't do anything but restore, and when i restore it, the screen gets stuck on weird things, like the apple screen or purple or yellow. how do i get it un-stuck?

    i restored my iPod in the middle of a download, now it can't do anything but restore, and when i restore it, the screen gets stuck on weird things, like the apple screen or purple or yellow. how do i get it un-stuck?

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Does anyone know anything about iPhones and/or iPads having barcode scanners for business purposes?

    Does anyone know anything about iPhones and/or iPads having barcode scanners for business purposes?  I am doing some research about the benefits of using a Q R Code type of system, but question which handheld sets would be more compatible for using that type of barcode.  Being a avid Apple supporter, I cannot seem to find very much research on this specific topic.
    Any thoughts?

    I have a QR reader on my iphone. Works just brill. I've used it to create business cards, with a boat load more information on it (Including my duty times, etc)
    Most of the QR readers in the App store are free, so give them a try. You can copy and paste the data just like normal text.
    What application for them did you have in mind?

  • Why when i download anything thru firefox and try to run it says its not a win 31 application and the properties show it is empty

    why when i download anything thru firefox and try to run it says its not a valid win 32 application and the properties show it is empty

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go Tools Menu -> Clear Recent History -> '''Time range to clear: select EVERYTHING''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> Advanced -> Network -> Offline Storage (Cache): click '''Clear Now''' button
    If the problem persist check this link:
    Unable to download or save files
    https://support.mozilla.com/en-US/kb/Unable%20to%20download%20or%20save%20files
    Check and tell if its working.

  • Contacts are there, but can't read anything in it, and can't write either.

    Hello,
    Contacts are there, but i can't read anything in it, and can't write either.
    The place where i should read Name, Family Name, mail adress, phone, etc is EMPTY ! All white ! The card got hos name, but there is nothing in.
    I started to use my mac book and adress book too.
    I use mac os X since the beginnning, and i never had this problem with it.
    Can someone help me please !
    Thanks

    Sounds like the Font Cache has a corrupt font in it.
    Try this:
    http://www.ehow.com/how_7197467_rebuild-font-cache.html
    If that one doesn't work, it could be the WPF font cache
    http://support.microsoft.com/kb/937135
     You'll have to delete the .dat files in C:\Windows\ServiceProfiles\LocalService\AppData\Local and restart the computer.

Maybe you are looking for

  • Open a New Browser menu button

    When I click the "open FlashPaper document in a new browser window" button on the FlashPaper menu bar, a new window opens showing a bunch of nonsense. The FlashPaper document does not appear. This does not happen when I am viewing the pages locally.

  • Transferring from iPod Classic to Second Hard Drive

    My external hard drive crashed last week and I have songs on my iPod Classic.   Can I transfer these songs to another hard drive easily? I'm afraid if I plug it in all my files will be wiped out.

  • Calling pl/sql stored procedure from shell script ( kshell)

    hello., i have written a stored procedure. i need to call this stored procedure from a unix shell script ( korn shell). can anyone please help me how can i do it.actually there are 3 stored procedures. so my shell script has to call each stored proce

  • Regarding New G/L Account

    Hi All,   Curruntly m working  with  <b>New G/L</b> A/c. Now m not able to cancel my any billing document or Credit memo through VF11 of any <b>Old G/L</b> a/c.    Plz Explain me this funda of cancellation of Old & New G/L's BillingDocument or Credit

  • CTI Configuration

    Hi Can anyone help me out with CTI vendors? Also tell me the various steps that I need to take in order to configure CTI? Thanks Tarang