GitXplorerGitXplorer
d

nsyrc

public
4 stars
0 forks
8 issues

Commits

List of commits on branch master.
Unverified
5ec0eba82f98e6c2a03f59f4b719978ea6bd735c

Update README.md

ddanyshaanan committed 10 years ago
Unverified
1870a4f435d61ac7f2f19e6048ce2afbd96fb309

udpated example image - fix

ddanyshaanan committed 10 years ago
Unverified
e48fff6eff5f0e5b78785cf8ba40f8631d135c64

udpated example image

ddanyshaanan committed 10 years ago
Unverified
3ae45bf093bfd48ca5861f82f40e8980e790e10b

nsyrc version 0.1.0

ddanyshaanan committed 10 years ago
Unverified
84d838ede71192288496538234cf3804e1c32c04

change directory structure

ddanyshaanan committed 10 years ago
Unverified
4a8343f9029cf356e8f31a1a998d20252b4a7fbb

updated version of columnify, now includes paddingChr

committed 10 years ago

README

The README file for this repository.

nsyrc

A command line tool for easily defining and maintaining rsync backups

nsyrc lets you save links between source and target folders, and rsync easily between them.


Installation

$ npm install -g nsyrc

Usage

nsyrc shows you the list of your defined links. Here is the result of running nsyrc with this .nsyrc file:

Screen shot of a result of nsyrc show

Each row represents a link. The padded columns are, from left to right:

  • id - used for syncing or removing links.
  • Source folder, Target folder, which are marked with these colors:
  • Green: local existing folder
  • Yellow: remote folders, which are not checked for existance
  • Gray: local non-existing folders, probably folders on removeable media
  • How long ago it was last synced, which is marked with these colors that represent predefined periods of time:
  • White: less than a day
  • Yellow: more than a day and less than a week
  • Red: more than a week

A pending feature will enable the user to set those period of time.

nsyrc -l <source> <target> creates a new link.

nsyrc <id> prompts the user to run the link with --dry-run first, and then without. Use --wet to skip dry-run.

nsyrc -n does the same for the first link that was not synced in the last 24 hours.

nsyrc -t <id> trashes a link. nsyrc -e empties the trash. The trash is currently only accessible through opening ~/.nsyrc


Info

  • The links data is saved as json in ~/.nsyrc
  • The default for the dry-run prompt is YES, while the default of the wet-run prompt is NO.
  • Common use is for syncing folders, but defining links between files is also possible.

Disclaimer

While nsyrc tries to distance the user from the dangers of using rsync directly, it is still a program that runs rsync commands, and that was written by a human being, and no one can guarantee that it is devoid of bugs or unexpected behaviors, therefore use this software at your own risk.


Feedback